-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Implement server-side support for Client ID Metadata Documents (CIMD) #1801
Copy link
Copy link
Open
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featureauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedready for workEnough information for someone to start working onEnough information for someone to start working on
Metadata
Metadata
Assignees
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featureauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedready for workEnough information for someone to start working onEnough information for someone to start working on
Summary
PR #1652 implemented client-side support for Client ID Metadata Documents (CIMD) per SEP-991, but the server-side implementation is missing. Authorization servers built with the Python SDK cannot currently support CIMD.
Background
CIMD (draft-ietf-oauth-client-id-metadata-document-00) allows OAuth clients to use HTTPS URLs as client identifiers, where the URL points to a JSON document containing client metadata. This is the recommended registration approach per the MCP spec (ahead of DCR).
From the MCP Authorization spec:
Current State
Client-side (implemented in #1652)
is_valid_client_metadata_url()- validates HTTPS URLs with path componentshould_use_client_metadata_url()- checks if server advertises CIMD supportcreate_client_info_from_metadata_url()- uses URL as client_idServer-side (missing)
client_id_metadata_document_supported=truein OAuth metadataSpec Requirements for Authorization Servers
From the MCP spec and CIMD RFC:
client_idmatches the URL exactlyReferences
AI Disclaimer