Skip to content

Fix #1430: Client Credentials providers scopes support (backported)#1442

Merged
pcarleton merged 3 commits intomodelcontextprotocol:v1.xfrom
NSeydoux:private-key-jwt-scopes-backport
Feb 2, 2026
Merged

Fix #1430: Client Credentials providers scopes support (backported)#1442
pcarleton merged 3 commits intomodelcontextprotocol:v1.xfrom
NSeydoux:private-key-jwt-scopes-backport

Conversation

@NSeydoux
Copy link
Copy Markdown

@NSeydoux NSeydoux commented Feb 2, 2026

This adds support for a scope parameter in the client credentials OAuth providers as described in #1430.

Motivation and Context

A client may now specify which scopes it requests to the Authorization Server.

How Has This Been Tested?

I have tested against an OAuth-compliant Authorization Server and an MCP Resource Server enforcing access control based on Access Token scopes.

Breaking Changes

No, the change is opt-in and the default behavior remains the same.

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 (N/A)
  • I have added or updated documentation as needed

Additional context

This is a backport of this feature to the v1.x branch, I'll open a similar PR against the upcoming v2 branch.

@NSeydoux NSeydoux requested review from a team as code owners February 2, 2026 15:39
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: ea4cc49

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@NSeydoux NSeydoux changed the title Private key jwt scopes backport Fix #1430: Client Credentials providers scopes support Feb 2, 2026
@NSeydoux NSeydoux changed the title Fix #1430: Client Credentials providers scopes support Fix #1430: Client Credentials providers scopes support (backported) Feb 2, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/sdk@1442

commit: ea4cc49

Copy link
Copy Markdown
Member

@pcarleton pcarleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, i think it just needs linting

@NSeydoux
Copy link
Copy Markdown
Author

NSeydoux commented Feb 2, 2026

Should I add a changeset, or is it something that is done by maintainers at release time?

@NSeydoux NSeydoux mentioned this pull request Feb 2, 2026
9 tasks
@pcarleton
Copy link
Copy Markdown
Member

we should fix that comment... changesets only matter for the main branch (i.e. v2 alpha)

@pcarleton pcarleton merged commit 50d9fa3 into modelcontextprotocol:v1.x Feb 2, 2026
6 checks passed
@NSeydoux NSeydoux deleted the private-key-jwt-scopes-backport branch February 2, 2026 15:56
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