Skip to content

fix: don't leak escalated scopes in PRM for step-up test#154

Merged
pcarleton merged 1 commit intomainfrom
paulc/step-up-prm-fix
Mar 25, 2026
Merged

fix: don't leak escalated scopes in PRM for step-up test#154
pcarleton merged 1 commit intomainfrom
paulc/step-up-prm-fix

Conversation

@pcarleton
Copy link
Member

The scope-step-up scenario sets scopesSupported: escalatedScopes in the PRM, which leaks the escalated scope (mcp:write) via discovery. This lets clients pass the test by just re-authenticating and picking up scopes_supported from the PRM — without actually handling the 403 insufficient_scope response.

Fix: set scopesSupported: [initialScope] so only mcp:basic is advertised in the PRM. The escalated scope (mcp:basic mcp:write) is only available from the 403 WWW-Authenticate header on tools/call.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 17, 2026

Open in StackBlitz

npx https://pkg.pr.new/@modelcontextprotocol/conformance@154

commit: a01476b

@pcarleton pcarleton force-pushed the paulc/step-up-prm-fix branch from c4b20c5 to a01476b Compare March 25, 2026 12:17
@pcarleton pcarleton marked this pull request as ready for review March 25, 2026 12:18
@pcarleton pcarleton enabled auto-merge (squash) March 25, 2026 12:18
@pcarleton pcarleton merged commit fe16e38 into main Mar 25, 2026
9 checks passed
@pcarleton pcarleton deleted the paulc/step-up-prm-fix branch March 25, 2026 12:19
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