Skip to content

docs(client): clarify private_key_jwt custom claim precedence#2096

Draft
MukundaKatta wants to merge 1 commit into
modelcontextprotocol:mainfrom
MukundaKatta:codex/clarify-private-key-jwt-claims
Draft

docs(client): clarify private_key_jwt custom claim precedence#2096
MukundaKatta wants to merge 1 commit into
modelcontextprotocol:mainfrom
MukundaKatta:codex/clarify-private-key-jwt-claims

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • clarify that PrivateKeyJwtProviderOptions.claims adds custom JWT claims but does not override SDK-controlled standard claims
  • add regression coverage for overlapping iss, sub, aud, exp, iat, and jti custom claims

Refs #1914.

Validation

  • git diff --check
  • pnpm --filter @modelcontextprotocol/client test -- test/client/authExtensions.test.ts
  • pre-push hook: pnpm -r build, pnpm -r typecheck, pnpm sync:snippets --check && pnpm -r lint

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 15, 2026

⚠️ No Changeset found

Latest commit: 2430289

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 15, 2026

Open in StackBlitz

@modelcontextprotocol/client

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

@modelcontextprotocol/server

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

@modelcontextprotocol/express

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

@modelcontextprotocol/fastify

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

@modelcontextprotocol/hono

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

@modelcontextprotocol/node

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

commit: 2430289

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.

1 participant