Repository navigation
Client Credentials In the token Handler #881
Copy link
Copy link
Open
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 / OAuthenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedimproves spec complianceWhen a change improves ability of SDK users to comply with spec definitionWhen a change improves ability of SDK users to comply with spec definitionpending SEP approvalWhen a PR is attached as an implementation detail to a SEP, we mark it as such for triage.When a PR is attached as an implementation detail to a SEP, we mark it as such for triage.
Description
Activity
- addedauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthimproves spec complianceWhen a change improves ability of SDK users to comply with spec definitionWhen a change improves ability of SDK users to comply with spec definitionenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedP1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureready for workEnough information for someone to start working onEnough information for someone to start working onpending SEP approvalWhen a PR is attached as an implementation detail to a SEP, we mark it as such for triage.When a PR is attached as an implementation detail to a SEP, we mark it as such for triage.and removedready for workEnough information for someone to start working onEnough information for someone to start working on
on Oct 6, 2025 This is pending SEP #882 being approved
Reacted by Sacha
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 / OAuthenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedimproves spec complianceWhen a change improves ability of SDK users to comply with spec definitionWhen a change improves ability of SDK users to comply with spec definitionpending SEP approvalWhen a PR is attached as an implementation detail to a SEP, we mark it as such for triage.When a PR is attached as an implementation detail to a SEP, we mark it as such for triage.
Is your feature request related to a problem? Please describe.
The MCP Authorization Spec 2.1.1 OAuth Grant Types mentions that both Authorization Code and Client Credentials should be handled.
Describe the solution you'd like
In /server/auth/handlers/token.py, we only currently support "authorization-code". It would be fantastic if we could support "client-credentials" as well.
python-sdk/src/mcp/server/auth/handlers/token.py
Lines 26 to 47 in 5441767
Describe alternatives you've considered
I mean it's just more convenient, so I don't have to do the whole PKCE exchange thing if it's not necessary.
Additional context
Link to MCP spec: https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization#2-1-1-oauth-grant-types