ReadonlyclientClient ID registered with the upstream OAuth provider
ReadonlyclientClient secret registered with the upstream OAuth provider
Optional ReadonlycodeTTL for code context (authorization code → redirect_uri mapping).
ReadonlyendpointsUpstream OAuth endpoint URLs
ReadonlymapMap the upstream userinfo response to MCP AuthInfo.
Called by verifyAccessToken() after fetching the userinfo endpoint.
The data parameter contains the parsed JSON response from the userinfo URL.
Optional ReadonlypendingTTL for pending authorization state (upstream state → client info mapping).
Optional ReadonlyrefreshWhether the upstream provider supports refresh tokens.
When true, exchangeRefreshToken() proxies to the token endpoint.
ReadonlyserverMCP server base URL (e.g. http://localhost:8000). Used as redirect_uri target.
Optional ReadonlytokenContent type for the token exchange request.
'form' — application/x-www-form-urlencoded (OAuth 2.1 standard, default)'json' — application/json (used by GitHub)Optional ReadonlyupstreamExtra query parameters appended to the upstream authorization URL.
Useful for non-standard providers that need additional parameters
like response_type, access_type, etc.
Standard parameters (client_id, redirect_uri, state, scope)
are set automatically and should NOT be included here.
ReadonlyupstreamScopes to request from the upstream provider (e.g. ['read:user'], ['openid', 'profile'])
Options for createUpstreamOAuthProvider.