oauth
The tracked changes tagged oauth, newest release first. Every sentence is an item's summary.
Goes with
Changes
MCP TypeScript SDK @modelcontextprotocol/client@2.4.0
-
Adds an optional scopeForRefresh(tokens) method on OAuthClientProvider and an optional scope parameter on refreshAuthorization(), so a scope can be sent on refresh-token requests for authorization servers that require it; without either option, refresh requests and saved tokens are unchanged.
MCP Python SDK v2.2.0
-
For servers without protected resource metadata, the OAuth client now rejects authorization server metadata whose issuer is not the server's own origin with OAuthFlowError, returns non-insufficient_scope 403 responses to the caller instead of retrying, and stops the flow on 5xx/429 when fetching protected resource metadata instead of falling back to legacy endpoints.
-
Constructing ClientCredentialsOAuthProvider or PrivateKeyJWTOAuthProvider without issuer= emits MCPDeprecationWarning; issuer will be required in 3.0.
-
AuthSettings with resource_server_url set but validate_token_resource unset emits MCPDeprecationWarning; the default becomes True in 3.0.
-
Adds AuthSettings.validate_token_resource, which accepts only bearer tokens that the TokenVerifier reports as issued for this server.
-
Adds issuer= parameter to ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider.
MCP Python SDK v1.30.0
-
OAuthClientProvider applies the same same-origin redirect rule to its own requests.
-
The OAuth client rejects authorization server metadata whose issuer does not match the server it was fetched for, raising OAuthFlowError.
-
Client registrations are now remembered per issuer, so the client registers again if the server points to a different authorization server.
-
If protected resource metadata cannot be fetched due to a 5xx or 429 response, the OAuth flow stops instead of falling back to legacy endpoints.
-
ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider used without issuer= now emit a DeprecationWarning; pass the authorization server's issuer URL.
+4 more
-
AuthSettings with resource_server_url set but validate_token_resource unset now emits a DeprecationWarning; set it to True or False.
-
Adds AuthSettings.validate_token_resource to accept only bearer tokens that the TokenVerifier reports as issued for this server.
-
Adds issuer= parameter to ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider.
-
Authorization server metadata issuer is validated on every discovery path.
MCP Python SDK v2.1.0
-
The 4 MiB request body limit now also applies to the SSE transport and the OAuth endpoints.
MCP Python SDK v1.29.1
-
The request body limit is now applied to the SSE and OAuth endpoints.