Skip to content

Conversation

@maxisbey
Copy link
Contributor

Add support for the client_id_metadata_document_supported field to the OAuthMetadata class as specified in draft-parecki-oauth-client-id-metadata-document-00.

Motivation and Context

This field is part of the OAuth Client ID Metadata Document specification. It allows authorization servers to indicate whether they support retrieving client metadata from a client_id URL. This enables clients to determine server capabilities before redirecting users, preventing errors about invalid clients.

How Has This Been Tested?

The change has been verified with:

  • Ruff formatting and linting checks pass
  • Pyright type checking passes
  • Existing tests continue to pass (the field is optional)

Breaking Changes

None. This is an additive change that adds an optional field to the OAuthMetadata model.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

This implements the authorization server metadata field specified in Section 5 of the draft specification. The field is registered in the IANA "OAuth Authorization Server Metadata" registry established by RFC 8414.

Add support for the client_id_metadata_document_supported field as
specified in draft-parecki-oauth-client-id-metadata-document-00. This
boolean field indicates whether the authorization server supports
retrieving client metadata from a client_id URL.
@maxisbey maxisbey added the auth Issues and PRs related to Authentication / OAuth label Nov 10, 2025
@pcarleton pcarleton merged commit 5e1aa40 into main Nov 13, 2025
21 checks passed
@pcarleton pcarleton deleted the add-client-id-metadata-document-supported branch November 13, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth Issues and PRs related to Authentication / OAuth

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants