Skip to content

Conversation

@ZachGerman
Copy link

@ZachGerman ZachGerman commented Aug 14, 2025

Adds support for JWT Credentials passed to the OAuthClientProvider.
Also added a JWT OAuth client in the examples directory.

Motivation and Context

This provides support for machine-to-machine auth.

How Has This Been Tested?

Tested E2E via Auth0.

Breaking Changes

  • Now requiring codeVerifier for token exchange, but I'm pretty sure it's desirable behavior since PKCE is required per MCP spec.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Draft until tested end-to-end. Tested E2E via Auth0.
Bloated jwt-utils, as I was oiriginally going to add it to the built-in AS, but did a 180. Leaving it as-is in case someone wants to add built-in AS support for JWT.

@ZachGerman ZachGerman force-pushed the RFC-7523-support branch 4 times, most recently from 7092743 to 1094286 Compare August 19, 2025 04:58
@ZachGerman ZachGerman marked this pull request as ready for review August 19, 2025 05:04
@ZachGerman ZachGerman requested review from a team, felixweinberger and pcarleton August 19, 2025 05:04
@ZachGerman
Copy link
Author

@pcarleton @felixweinberger Any review possible for this some time soon?

@yannj-fr
Copy link

yannj-fr commented Oct 28, 2025

Considering the recent change (the spec is now part of ext-auth). We took the approach to have this in mcp.client.auth.extensions.client_credentials in the python SDK to highligh the "extension". I think this might be wise to find a similar way for typescript sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants