Skip to content

Incorrect ProtectedResourceMetadata model for oauth authentication #2205

@l-peron

Description

@l-peron

Initial Checks

Description

It looks like that the “authorization_servers” field is incorrect (https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/shared/auth.py#L138). It should be optional as defined in the RFC.

This issue does not exist in the TS SDK: https://github.com/modelcontextprotocol/typescript-sdk/blob/main/packages/core/src/shared/auth.ts#L32

Example Code

Python & MCP Python SDK

v1.26.0

Metadata

Metadata

Assignees

Labels

authIssues and PRs related to Authentication / OAuthneeds confirmationNeeds confirmation that the PR is actually required or needed.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions