authentication.oauth support in MCP clients

Which MCP clients support authentication.oauth, and how each claim is known. The protocol introduced it in 2025-03-26.

Has authentication.oauth.clientIdMetadataDocument, authentication.oauth.dynamicRegistration, authentication.oauth.resourceIndicators, authentication.oauth.protectedResourceMetadata, authentication.oauth.openIdConnectDiscovery, authentication.oauth.issuerIdentification.

Support

Client Kind Status Known from Revisions Notes
Codex CLI host ● full read 2025-06-18 Prefers CIMD over DCR when the authorization server advertises it, using a ChatGPT-hosted client identifier. When the server also advertises authorization_response_iss_parameter_supported and names an issuer, the identifier is one shared document, https://chatgpt.com/oauth/codex/client.json. A per-server oauth.client_id and client_secret can be configured instead. PKCE and the token exchange are rmcp's AuthorizationManager and were not read at this commit.
opencode host ● full read 2025-11-25 A configured client_id wins. Otherwise opencode uses a Client ID Metadata Document at https://opencode.ai/oauth/opencode/client.json when the authorization server advertises client_id_metadata_document_supported and the none token auth method and no redirect_uri is configured, and falls back to Dynamic Client Registration. token_endpoint_auth_method is none unless a client_secret is configured, then client_secret_post. The callback is a loopback server on 127.0.0.1 at callback_port, else the redirect_uri port, else the port the earlier login's client was registered with, else an ephemeral port. A reused port that another process holds falls back to an ephemeral port and a new registration. A connection never starts a login; it refreshes a stored token 30 seconds before expiry or after a 401. oauth: false turns OAuth off for a server.
Cline * host ● full read 2025-11-25 One flow shared by both surfaces: the extension delegates to @cline/core's authorizeMcpServerOAuth, the same call the CLI makes. Tokens live in the shared settings file under each server's oauth key, so an authorization completed in the CLI is picked up by an open extension window. token_endpoint_auth_method is none unless a clientSecret is configured. The callback binds a loopback server on the first free port, 1456-1461 from the extension and 1456-1458 from the CLI. Discovery, PKCE and protected-resource metadata are the SDK's auth() and were not read.
fast-agent framework ● full read, verified 2026-07-28 Escalated rather than assumed: a remote server is tried unauthenticated first, and OAuth is only enabled on a second attempt after a 401. auth.oauth: true forces it, auth.oauth: false and a configured Authorization header both suppress it. Tokens persist in the OS keyring under service fast-agent-mcp, with an in-memory fallback and a printed warning when no keyring backend is available. The callback is a local loopback server, with a paste fallback.
OpenClaw * host ● full read 2025-11-25 Full SDK OAuth provider with a persisted per-identity store, now in the shared SQLite state database. Both registration paths are available: Dynamic Client Registration through saveClientInformation, and a Client ID Metadata Document through a per-server oauth.clientMetadataUrl. Credentials can be invalidated by scope (all, client, tokens, verifier, discovery). The node host skips any server configured for OAuth.
Hermes Agent host ● full read 2025-11-25 Opt-in through auth: oauth on the server entry, on the SDK's OAuthClientProvider. By default the client_id is Hermes' Client ID Metadata Document URL when the server supports CIMD, else RFC 7591 dynamic registration with application_type native. Tokens persist per server, are reloaded when another process refreshes them, and are bound to the issuer. An RFC 8628 device flow runs only on request, through hermes mcp login --flow device or oauth.flow: device. The web dashboard can receive the browser callback in place of a loopback listener.
Kilo Code * host ● full read 2025-11-25 CIMD is Kilo's addition: clientMetadataUrl is https://kilo.ai/docs/oauth/kilo/client.json, offered only when no clientId or clientSecret is configured and the redirect URI is the default. The SDK uses it when the authorization server supports URL-based client ids and falls back to DCR otherwise. A stored token that has expired is refreshed before connecting, bounded by the connect timeout, because some servers answer an expired token with 403 and the SDK only retries 401. The callback is a loopback server on 127.0.0.1.
Mastra framework ◇ opt-in read, verified 2026-07-28 Opt-in: a url entry takes an authProvider, any SDK OAuthClientProvider. With none, a 401 fails the connect. The shipped MCPOAuthClientProvider takes either pre-registered client information or a Client ID Metadata Document URL. It has no saveClientInformation, so the SDK cannot register dynamically through it, and it returns the CIMD URL as client_id without the SDK's check of client_id_metadata_document_supported. MCPClient.authenticate() runs the code flow on a loopback callback server and passes the RFC 9207 iss to the SDK for validation. Tokens are keyed by issuer and held in memory unless a storage is passed. PKCE, resource indicators and metadata discovery are the SDK's.
fx (native engine) host ● full read 2026-07-28 Discovery reads the WWW-Authenticate challenge, then RFC 9728 resource metadata, then authorization server metadata with OpenID Connect discovery as a fallback. The server must list S256. Registration tries a configured oauth.client_id, then a client ID metadata document when the server supports them and the entry sets oauth.client_metadata_url, then Dynamic Client Registration as a native public client named fx. fx hosts no metadata document, so a default install registers dynamically and clientIdMetadataDocument is recorded false. The redirect is a loopback listener on 127.0.0.1. A 403 insufficient_scope challenge starts a step-up sign-in. A missing iss is refused when the server advertised it. Sign-out revokes the token.
libfx (fx JavaScript adapter) * framework · untested read 2025-11-25 libfx takes no part in authentication. The README says the application creates the client and handles its auth. What OAuth support an application gets depends on the SDK version it installs, which was not read.
eve framework ◐ partial read 2026-07-28 eve runs none of the MCP authorization flow itself. It passes no authProvider to the SDK, so the SDK's metadata discovery, registration and PKCE code is never reached, and eve does not read WWW-Authenticate. A connection's auth is a token provider whose token is sent as a bearer. A provider with startAuthorization and completeAuthorization adds interactive sign-in, and the documented one is connect() from @vercel/connect/eve, which gets tokens from Vercel Connect. When the provider has no token yet, eve connects anonymously and asks for sign-in on an HTTP 401 or on an error result carrying _meta["mcp/www_authenticate"]. The three flags below describe eve's own code. What Vercel Connect does towards the authorization server was not read.
pi * host ● full read 2025-11-25 Applies to a url server with no Authorization header and no auth block. A connection never opens a browser: it sends the stored access token, refreshes it 30 s before expiry or after a 401, and otherwise marks the server as needing sign-in until the user runs /mcp or pi mcp login. A 403 with insufficient_scope also asks for sign-in, with the challenged scopes added to the granted ones. Without a clientId pi offers its Client ID Metadata Document on pi.dev when the authorization server advertises client_id_metadata_document_supported and the none token auth method, and registers dynamically otherwise. The callback is a loopback server on 127.0.0.1, or a redirect URL the user pastes. Tokens are stored in mcp-auth.json in the agent directory, keyed by server name and URL, and refreshes are serialized across pi processes with a lock file. The flow code is adapted from typescript-sdk v1.29.0 src/client/auth.ts.
Strands Agents framework ◐ partial read 2026-07-28 Built in for the client_credentials grant only. The auth option takes a client id, a client secret and optional scopes, and Strands builds the SDK's ClientCredentialsOAuthProvider with in-memory token storage. The repo has no browser flow, callback server or token persistence. An application that wants the authorization code flow passes its own httpx.Auth as auth_provider, which Strands adapts to httpx2 on mcp 2.x. Strands passes no issuer to the provider, which mcp 2.3.0 documents as deprecated. Streamable HTTP only. TypeScript: the same two options, auth and authProvider.
crewAI * framework ○ unsupported read 2025-11-25 No OAuth code. HTTPTransport and SSETransport pass a url and headers to the SDK and never pass auth, and the SDK's OAuthClientProvider is not imported anywhere under lib/. A 401 or 403 becomes MCPAuthenticationError, whose message says to check the headers. For an AMP slug the config, with its url and headers, comes from the CrewAI+ API. On the adapter route the params dict reaches the SDK transport as keyword arguments, so an application can pass its own httpx auth object there.
deepagents * framework ● full read 2025-11-25 A subclass of the SDK's OAuthClientProvider. It is attached when the entry sets auth: oauth, or when tokens from an earlier login are stored and no Authorization header is configured. Loading tools never opens a browser: a server with no usable tokens, or one that answers 401 with an RFC 9728 Bearer challenge, is listed as unauthenticated and the user runs dcode mcp login . Login uses a loopback callback on localhost, reusing the port of an earlier registration, with a paste-back prompt as the fallback. Tokens are stored per server in a file under the state directory, and refreshes are serialized across processes with a file lock. No client_metadata_url is passed, so the SDK registers dynamically and never uses a Client ID Metadata Document. GitHub's hosted server uses the device flow with a built-in public client id, and Slack's uses a built-in client id with a fixed callback port 3118.
Google ADK (Python) framework ◐ partial read 2025-11-25 The flow is ADK's generic tool-auth framework, and the SDK's OAuth client is not used. The application passes an auth_scheme and an auth_credential with a registered client id. ADK builds the authorization URL, hands it to the application in an adk_request_credential function call, exchanges the code, refreshes the token and sends it as a Bearer header. Nothing reads a 401 challenge. Protected resource metadata discovery is defined and has no caller under src. Authorization server metadata is fetched only for an ExtendedOAuth2 scheme that carries an issuer_url. There is no dynamic registration, no client ID metadata document and no resource parameter. PKCE S256 is used when the credential has no client secret or asks for it.
Microsoft Agent Framework framework ○ unsupported read 2026-07-28 MCPStreamableHTTPTool has no auth parameter, and no file under python/packages imports mcp.client.auth. An application can pass its own httpx2.AsyncClient through http_client and attach the SDK's OAuth provider to it. The framework does not set that up. FoundryToolbox authenticates with a bearer token from an Azure credential. .NET: neither client the framework builds sets HttpClientTransportOptions.OAuth. The Agent_MCP_Server_Auth sample sets it on a transport the application builds, which is the C# SDK's feature.
Hugging Face Chat UI host ● full read 2026-07-28 Chat UI runs discovery itself when a user adds a server: a hand-written initialize at 2025-11-25 under the name chat-ui-mcp-probe looks for a 401 or 403, then RFC 9728 and RFC 8414 metadata through SDK helpers. The authorization server must advertise PKCE S256. The client is a CIMD document the app serves at /api/mcp/oauth/client-metadata when the server advertises client_id_metadata_document_supported and the app's origin is HTTPS, else DCR, else a client the user types in. The callback checks state and the RFC 9207 iss parameter. Tokens live in MongoDB, encrypted when MCP_OAUTH_ENCRYPTION_KEY is set, and are refreshed before a send. An insufficient_scope challenge on any MCP response records the scope and asks the user to authorize again, at most three times.
Visual Studio Code * host ● full read 2025-11-25 On a 401 or 403 the client reads resource_metadata from WWW-Authenticate, falls back to the well-known protected resource paths, then to authorization server metadata, then to default endpoints derived from the URL. A stored client id wins. Without one, CIMD is used when the server advertises client_id_metadata_document_supported and the product sets authClientIdMetadataUrl; the Code - OSS product.json does not set it, and the Microsoft builds' product.json is not in the repo. Otherwise DCR, and if DCR fails the user is prompted for a client id and secret. The DCR request lists device_code among its grant types, and no device flow was found in the dynamic provider. Enterprise-managed servers can use cross-app access through a configured IdP.
n8n * host ● full read 2025-11-25 OAuth runs in n8n's credential layer, not the SDK auth provider: the user connects an MCP OAuth2 credential in the editor, and the node sends its token as a bearer header. A 401 on any request refreshes the token and retries once. It never starts a new authorization. Discovery reads protected resource metadata from the credential's server URL, path first then root, then authorization server metadata (RFC 8414 and OIDC, issuer checked). Automatic registration is on by default for the MCP OAuth2 credential. CIMD is opt-in through N8N_OAUTH_CIMD_ENABLED (default false) and needs an HTTPS metadata URL; otherwise DCR. The callback checks iss (RFC 9207). A generic OAuth2 credential is also offered.
Langflow * host ○ unsupported read 2025-11-25 No OAuth code on the client path. The SDK's OAuthClientProvider is not imported, and the httpx factory is never given an auth object. A 401 surfaces as a connection error naming the server and the status. The OAuth code elsewhere in Langflow belongs to its own MCP server and MCP Composer.
mcp-use framework ● full read 2025-11-25, 2026-07-28 On by default. MCPClient attaches an OAuth provider to every HTTP server whose entry has no authProvider, no authToken and no Authorization header, unless oauth is false. A connect or later request that needs authorization runs the flow and retries once. The Node provider listens on 127.0.0.1:33418 (walking up 10 ports, then an ephemeral port), opens the browser, and persists client registrations and tokens under ~/.mcp-use/oauth with mode 0600. Client metadata is a public client with authorization_code and refresh_token grants. DCR, PKCE, RFC 9728 discovery, the resource parameter and the RFC 9207 iss check run in the SDK. A Client ID Metadata Document is used only when the clientMetadataUrl option is set. After an anonymous connection, RFC 9728 metadata is probed for 2 seconds to mark mixed-auth servers. The browser entry uses a popup or redirect. Python: the default auth {} also builds an OAuth helper, written by mcp-use on authlib, with a callback on localhost:8080, DCR, PKCE S256, CIMD when client_metadata_url is set and tokens under ~/.mcp_use/tokens. A server with no discoverable OAuth metadata connects without auth.
Zed * host ● full read 2025-11-25 Starts on a 401 at initialize or later, unless a static Authorization header is configured. Discovers protected resource metadata, then authorization server metadata by RFC 8414 and OIDC URLs, and requires S256 PKCE. Uses CIMD (https://zed.dev/oauth/client-metadata.json) when the server advertises it, DCR otherwise, or a pre-registered client_id and secret from settings. Sends resource on the authorization, token and refresh requests. The callback is a loopback server, the session is stored in the system keychain, and a 401 triggers one refresh and retry. The callback's iss parameter is not checked.
TypeScript SDK Client sdk ◇ opt-in read, verified 2025-11-25 Off until the application passes an OAuthClientProvider as the transport authProvider. Then the auth() flow discovers protected resource metadata, then authorization server metadata through RFC 8414 and OpenID Connect paths. It uses a CIMD URL as the client_id when the provider sets clientMetadataUrl and the server advertises client_id_metadata_document_supported, and registers dynamically otherwise. PKCE is S256. The resource parameter goes on the authorize and token requests. The RFC 9207 iss parameter is checked. A 403 insufficient_scope triggers one step-up reauthorization by default. ClientCredentialsProvider and PrivateKeyJwtProvider cover client_credentials. 2.4.0 always adds prompt=consent when the scope includes offline_access; HEAD adds skipOfflineAccessConsentPrompt.
Warp host ● full read 2026-07-28 On by default (mcp_oauth). A 401 starts OAuth unless the challenge lacks resource_metadata and the config set an Authorization, X-Api-Key or Api-Key header. Uses rmcp's AuthorizationManager. Issuers in the build's channel config, such as GitHub, use a pre-registered client; any other issuer gets DCR with client_name Warp. No client_metadata_url is set, so CIMD is never used. The GUI redirects to warp://mcp/oauth2callback, the TUI to a 127.0.0.1 loopback. Tokens are kept in secure storage and a refresh token is carried forward when a refresh response omits one. Headless and cloud agent runs refuse interactive OAuth.
Reachy Mini conversation app host ○ unsupported read 2026-07-28 The httpx2 client gets headers and no auth flow, and the SDK's OAuth provider is never constructed. A 401 surfaces as a discovery or invocation error.

Not recorded for goose, Google Antigravity, Claude Code, Claude.ai, ChatGPT, Codex Desktop, Cursor. A missing record is not the same as unsupported.

Rows describe each client on 2026-07-28. A row marked * is for the newest revision the client speaks, because it cannot negotiate 2026-07-28: 2025-11-25 for 11 clients.

Tiers are not ranked. read is a source read at a pinned commit, verified is a probe run, observed is telemetry, and declared is what the client or a curated list says. "Through" names the parent capability whose evidence a row rests on when it has none of its own.

By protocol revision

No client records a different row on 2025-11-25, so the rows above hold there too.

Hermes Agent, Warp, Reachy Mini conversation app have one set of rows for every revision they speak, not yet split by revision.

The matrix on 2025-11-25 shows every capability on that revision.

Conformance suite results

The MCP conformance suite ran its client scenarios for this capability against each client, through the probe's adapter and mock model. A scenario counts as full when every check passed and the client exited cleanly, partial when some checks passed and one failed, and failed when no check passed. "Absence only" means the only checks that passed are ones a client that ignores the feature also passes.

Each row is one client configuration. A name other than default is followed by its kind: setting for a switch the client documents, harness for probe-written code that uses an API the client leaves to the application, such as an elicitation callback. A harness row says what an application built on the client can do. A configuration named default with a kind after it is not the client's stock setup.

Client Kind Configuration Version Revision Scenarios Checks passed
fast-agent framework default 0.10.53 2025-11-25 1 partial 1 of 3
fast-agent framework default 0.10.53 2026-07-28 1 partial 1 of 3
Mastra framework default mcp-2.9.0-alpha.1+core-1.83.0-alpha.1 2025-03-26 2 failed 0 of 5
Mastra framework default mcp-2.9.0-alpha.1+core-1.83.0-alpha.1 2025-06-18 3 failed 0 of 3
Mastra framework default mcp-2.9.0-alpha.1+core-1.83.0-alpha.1 2025-11-25 8 failed 0 of 16
Mastra framework default mcp-2.9.0-alpha.1+core-1.83.0-alpha.1 2026-07-28 8 failed 0 of 16
TypeScript SDK Client sdk default (harness) 2.4.0 2025-03-26 2 full 19 of 19
TypeScript SDK Client sdk default (harness) 2.4.0 2025-06-18 3 full 39 of 39
TypeScript SDK Client sdk default (harness) 2.4.0 2025-11-25 19 full 200 of 200
TypeScript SDK Client sdk default (harness) 2.4.0 2026-07-28 30 full 250 of 250

The checks behind each row, with their messages, are in the client's record file under /data/verified/.

Evidence

Codex CLI:

opencode:

Cline:

fast-agent:

OpenClaw:

Hermes Agent:

Kilo Code:

Mastra:

fx (native engine):

libfx (fx JavaScript adapter):

eve:

pi:

Strands Agents:

crewAI:

deepagents:

Google ADK (Python):

Microsoft Agent Framework:

Hugging Face Chat UI:

Visual Studio Code:

n8n:

Langflow:

mcp-use:

Zed:

TypeScript SDK Client:

Warp:

Reachy Mini conversation app:

Lifecycle

Revision Change
2025-03-26 Introduced.
2025-06-18 Servers classified as OAuth Resource Servers with protected resource metadata (PR #338); RFC 8707 Resource Indicators required of clients (PR #734)
2025-11-25 OpenID Connect Discovery 1.0 (PR #797); incremental scope consent via WWW-Authenticate (SEP-835); RFC 9728 alignment makes WWW-Authenticate optional (SEP-985)
2026-07-28 Client credentials bound to the issuing authorization server: clients MUST key persisted credentials by issuer, MUST NOT reuse them across authorization servers, and MUST re-register when the AS changes (SEP-2352)

OAuth 2.1-based authorization framework (PR #133).

Research notes

Kinds

Data

This page as JSON: /data/capabilities/authentication-oauth.json. All capabilities: /data/capabilities/index.json, and the matrix.