All areas Feed Weekly digests

oauth

The tracked changes tagged oauth, newest release first. Every sentence is an item's summary.

17 items from 5 releases, 5 breaking Sources: MCP TypeScript SDK, MCP Python SDK Last change:

Goes with

Changes

MCP TypeScript SDK @modelcontextprotocol/client@2.4.0

  1. feature

    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

  1. breaking Breaking

    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.

  2. deprecation

    Constructing ClientCredentialsOAuthProvider or PrivateKeyJWTOAuthProvider without issuer= emits MCPDeprecationWarning; issuer will be required in 3.0.

  3. deprecation

    AuthSettings with resource_server_url set but validate_token_resource unset emits MCPDeprecationWarning; the default becomes True in 3.0.

  4. feature

    Adds AuthSettings.validate_token_resource, which accepts only bearer tokens that the TokenVerifier reports as issued for this server.

  5. feature

    Adds issuer= parameter to ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider.

MCP Python SDK v1.30.0

  1. breaking Breaking

    OAuthClientProvider applies the same same-origin redirect rule to its own requests.

  2. breaking Breaking

    The OAuth client rejects authorization server metadata whose issuer does not match the server it was fetched for, raising OAuthFlowError.

  3. breaking Breaking

    Client registrations are now remembered per issuer, so the client registers again if the server points to a different authorization server.

  4. breaking Breaking

    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.

  5. deprecation

    ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider used without issuer= now emit a DeprecationWarning; pass the authorization server's issuer URL.

+4 more
  1. deprecation

    AuthSettings with resource_server_url set but validate_token_resource unset now emits a DeprecationWarning; set it to True or False.

  2. feature

    Adds AuthSettings.validate_token_resource to accept only bearer tokens that the TokenVerifier reports as issued for this server.

  3. feature

    Adds issuer= parameter to ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider.

  4. fix

    Authorization server metadata issuer is validated on every discovery path.

MCP Python SDK v2.1.0

  1. feature

    The 4 MiB request body limit now also applies to the SSE transport and the OAuth endpoints.

MCP Python SDK v1.29.1

  1. fix

    The request body limit is now applied to the SSE and OAuth endpoints.