-
Notifications
You must be signed in to change notification settings - Fork 3.3k
oauth protected resource metadata URL #1049
Copy link
Copy link
Closed
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthbugSomething isn't workingSomething isn't workingready for workEnough information for someone to start working onEnough information for someone to start working on
Milestone
Metadata
Metadata
Assignees
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthbugSomething isn't workingSomething isn't workingready for workEnough information for someone to start working onEnough information for someone to start working on
Question
Suppose we run multiple MCP servers under
https://example.com/mcpServersand one MCP server URL ishttps://example.com/mcpServers/myAwesomeServer, should the protected resource metadata endpoint behttps://example.com/.well-known/oauth-protected-resource/mcpServers/myAwesomeServer?From this code https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/auth.py#L206 seems the protected resource metadata URL is always base URL + "/.well-known/oauth-protected-resource".
According to https://datatracker.ietf.org/doc/html/rfc9728#name-obtaining-protected-resourc
So if the resource server URL is
https://example.com/mcpServers/myAwesomeServer, the protected resource URL should behttps://example.com/.well-known/oauth-protected-resource/mcpServers/myAwesomeServerAdditional Context
No response