feat(mcp): support bot-signed jwt-bearer auth for MCP plugins - #1767
Open
mchen-sentry wants to merge 1 commit into
Open
feat(mcp): support bot-signed jwt-bearer auth for MCP plugins#1767mchen-sentry wants to merge 1 commit into
mchen-sentry wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mchen-sentry
force-pushed
the
gocd-mcp-jwt-bearer-auth
branch
from
September 10, 2026 20:12
84dcdb5 to
0c06ebf
Compare
mchen-sentry
marked this pull request as ready for review
September 10, 2026 20:30
mchen-sentry
force-pushed
the
gocd-mcp-jwt-bearer-auth
branch
from
September 10, 2026 21:08
0c06ebf to
20b3e85
Compare
mchen-sentry
force-pushed
the
gocd-mcp-jwt-bearer-auth
branch
from
September 10, 2026 21:20
20b3e85 to
e6590d4
Compare
mchen-sentry
force-pushed
the
gocd-mcp-jwt-bearer-auth
branch
from
September 10, 2026 21:20
e6590d4 to
ebd54f7
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ebd54f7. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Junior can only authenticate to an MCP server with static headers or per-actor OAuth, but gocd-mcp now accepts short-lived signed JWTs from bots instead of a shared API key (server half in https://github.com/getsentry/gocd-mcp/pull/5).
Let's add an optional
mcp.authblock to plugin manifests: when set, the MCP client signs a 5-minute jwt-bearer assertion with a private key from an env var and the SDK exchanges it for an access token, re-minting on the next 401. Without the block, behavior is unchanged.We use the SDK's
prepareTokenRequesthook instead of its built-inPrivateKeyJwtProvider, since that one sends the client_credentials grant and python MCP servers don't accept it yet.Tested the assertion shape against the deployed gocd-mcp server.