8000 Bug in the simple-auth server example · Issue #949 · modelcontextprotocol/python-sdk · GitHub
[go: up one dir, main page]

Skip to content
Bug in the simple-auth server example #949
Open
@AlesoGio

Description

@AlesoGio

Initial Checks

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0