Repository navigation
Description
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/mcp
Section/Topic
Authenticate with remote MCP servers, especially the /mcp browser login flow and token refresh guidance
Current Documentation
The docs currently say:
In Claude code, use the command:
/mcpThen follow the steps in your browser to login.
Tips:
- Authentication tokens are stored securely and refreshed automatically
- Use "Clear authentication" in the
/mcpmenu to revoke access
No documentation currently explains what happens when a remote MCP server asks for additional OAuth scopes after the initial authorization is already in place.
What's Wrong or Missing?
Changelog v2.1.85 says:
Fixed MCP step-up authorization failing when a refresh token exists — servers requesting elevated scopes via
403 insufficient_scopenow correctly trigger the re-authorization flow
The MCP page documents initial browser login and automatic token refresh, but it does not explain the distinct step-up authorization case.
A. Elevated-scope re-authorization is undocumented
Users are not told that a remote MCP server can respond with 403 insufficient_scope to request additional scopes, and that Claude Code should send them back through the browser authorization flow to grant those scopes.
B. The relationship between refresh and re-authorization is unclear
The page says tokens are "refreshed automatically," but does not clarify that refresh is not enough when the server needs broader scopes. Users cannot tell why an already authenticated server may need another browser authorization step.
Suggested Improvement
Add a short note in the remote MCP OAuth section explaining step-up authorization. For example:
If a remote MCP server responds with
403 insufficient_scope, Claude Code treats that as a step-up authorization request and starts the browser re-authorization flow so you can approve the additional scopes. This can happen even when an existing refresh token is present, because refresh reuses the scopes already granted rather than requesting broader access.
Optionally mention that /mcp is the place to inspect the server and retry or clear authentication if needed.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Context |
|---|---|
| https://code.claude.com/docs/en/mcp | Primary Claude Code page for remote MCP OAuth setup; documents initial login and automatic token refresh but not step-up re-authorization for 403 insufficient_scope |
Total scope: 1 page affected
Source: Changelog v2.1.85
Changelog entry:
Fixed MCP step-up authorization failing when a refresh token exists — servers requesting elevated scopes via
403 insufficient_scopenow correctly trigger the re-authorization flow
Activity
coygeek commentedon Apr 13, 2026
Quickly checked the current docs mirror again and this still appears unresolved. The MCP docs still cover browser login, stored tokens, and automatic refresh, but I do not see step-up re-authorization guidance for
403 insufficient_scopeor a note explaining why refresh alone is not enough when broader scopes are requested.coygeek commentedon May 10, 2026
Issue #39626 Verification
Title: [DOCS] MCP OAuth docs omit step-up re-authorization for
403 insufficient_scopeIssue Date: 2026-03-27
Verification Date: 2026-05-10
Status: RESOLVED
Issue Summary
This issue reports that the MCP documentation described initial browser login and automatic token refresh, but did not explain the separate step-up re-authorization path when a remote MCP server responds with
403 insufficient_scopeand broader scopes are required.Verification Results
Claim 1: The MCP docs omitted step-up re-authorization for
403 insufficient_scopeStatus: RESOLVED
At
https://code.claude.com/docs/en/mcp, lines 783-805 now document scope pinning and the step-up case directly:If the server later returns a 403 insufficient_scope for a tool call, Claude Code re-authenticates with the same pinned scopes. Widen oauth.scopes when a tool you need requires a scope outside the pin.Verdict: The page now explicitly covers the
403 insufficient_scopeflow that was previously reported as undocumented.Claim 2: The relationship between token refresh and re-authorization was unclear
Status: RESOLVED
At
https://code.claude.com/docs/en/mcp, lines 670-674 state thatAuthentication tokens are stored securely and refreshed automatically. The same page then distinguishes refresh from the step-up case at lines 803-805:If the authorization server advertises offline_access in scopes_supported, Claude Code appends it to the pinned scopes so the access token can be refreshed without a new browser sign-in.andIf the server later returns a 403 insufficient_scope for a tool call, Claude Code re-authenticates with the same pinned scopes. Widen oauth.scopes when a tool you need requires a scope outside the pin.Verdict: The current docs now separate ordinary token refresh from the
403 insufficient_scopere-authentication path and explain when scope widening is required.Current State
403 insufficient_scopewas undocumentedSuggested Fix
N/A - issue has been resolved.
References
/mcpbrowser login flow, automatic token refresh, and authentication management tips.oauth.scopes, explains refresh behavior withoffline_access, and states the403 insufficient_scopere-authentication behavior.403 insufficient_scopenow correctly triggers the re-authorization flow when a refresh token exists.Conclusion & Recommendation
Primary Concern: The MCP docs previously did not explain the step-up authorization path for remote servers that return
403 insufficient_scope.Resolution Status: RESOLVED
Recommendation: CLOSE
The current MCP page now documents the
403 insufficient_scopere-authentication path and clarifies how that behavior differs from ordinary token refresh, so the reported documentation gap is no longer present.github-actions commentedon Jun 29, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.