TraceGuardDocs

OAuth

Authorize MCP and third-party clients.

TraceGuard is an OAuth 2.0 authorization server, used primarily to authorize MCP clients (and other third-party apps) without handing them a long-lived token.

Discovery

The server publishes standard authorization-server metadata at:

https://app.traceguard.io/.well-known/oauth-authorization-server

MCP clients derive this URL automatically from the server's resource URI, so in most cases you don't configure anything — you just approve the sign-in.

Endpoints

EndpointPurpose
/.well-known/oauth-authorization-serverAuthorization-server metadata.
/oauth/registerDynamic Client Registration (RFC 7591).
/oauth/authorizeAuthorization (user consent).
/oauth/tokenToken exchange.

Flow

  1. The client fetches the metadata and dynamically registers itself at /oauth/register.
  2. It sends you to /oauth/authorize to sign in and consent to the scopes it requests.
  3. It exchanges the resulting code at /oauth/token for an access token.
  4. It calls the MCP server (or API) with that token as a bearer credential.

Scopes use the same resource:action permission model as tokens and roles, and the issued token can never exceed your own authority.

For a headless integration that can't do an interactive OAuth flow, mint a static MCP token (tgm_…) instead and skip straight to bearer auth.