Skip to content

docs(client): clarify private_key_jwt reserved-claim behavior#2118

Open
nielskaspers wants to merge 1 commit into
modelcontextprotocol:mainfrom
nielskaspers:docs/1914-auth-claims
Open

docs(client): clarify private_key_jwt reserved-claim behavior#2118
nielskaspers wants to merge 1 commit into
modelcontextprotocol:mainfrom
nielskaspers:docs/1914-auth-claims

Conversation

@nielskaspers
Copy link
Copy Markdown
Contributor

@nielskaspers nielskaspers commented May 18, 2026

Fixes #1914.

Clarifies that createPrivateKeyJwtAuth({ claims }) merges additional payload keys, but the SDK always sets the standard JWT claims (iss, sub, aud, exp, iat, jti) explicitly and they override any overlapping keys in claims.

Docs-only change; no runtime behavior changes.

@nielskaspers nielskaspers requested a review from a team as a code owner May 18, 2026 06:10
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 18, 2026

⚠️ No Changeset found

Latest commit: 6ef33ce

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 18, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@2118

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@2118

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@2118

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2118

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@2118

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@2118

commit: 6ef33ce

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.

authExtensions docs say custom claims override reserved JWT claims, but implementation keeps reserved claims authoritative

1 participant