Open
Description
Initial Checks
- I confirm that I'm using the latest version of MCP Python SDK
- I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
Description
In server.py, on line 210, token_type should be "bearer" with a lowercase b, not uppercase as it is right now.
Example Code
return OAuthToken(
access_token=mcp_token,
token_type="Bearer",
expires_in=3600,
scope=" ".join(authorization_code.scopes),
)
should be:
return OAuthToken(
access_token=mcp_token,
token_type="bearer",
expires_in=3600,
scope=" ".join(authorization_code.scopes),
)
Python & MCP Python SDK
Python 3.12.7 and MCP Python SDK latest version
Metadata
Metadata
Assignees
Labels
No labels