Skip to content

[DOCS] MCP OAuth docs omit step-up re-authorization for 403 insufficient_scope #39626

Closed

Description

@coygeek

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:

/mcp

Then follow the steps in your browser to login.

Tips:

  • Authentication tokens are stored securely and refreshed automatically
  • Use "Clear authentication" in the /mcp menu 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_scope now 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_scope now correctly trigger the re-authorization flow

Activity

  1. added
    documentation
    on Mar 27, 2026
  2. added
    stale
    on Apr 12, 2026
  3. coygeek commented on Apr 13, 2026

    @coygeek
    Author

    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_scope or a note explaining why refresh alone is not enough when broader scopes are requested.

  4. removed
    stale
    on Apr 13, 2026
  5. added
    stale
    on May 9, 2026
  6. coygeek commented on May 10, 2026

    @coygeek
    Author

    Issue #39626 Verification

    Title: [DOCS] MCP OAuth docs omit step-up re-authorization for 403 insufficient_scope
    Issue 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_scope and broader scopes are required.


    Verification Results

    Claim 1: The MCP docs omitted step-up re-authorization for 403 insufficient_scope

    Status: 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_scope flow 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 that Authentication 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. and 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 current docs now separate ordinary token refresh from the 403 insufficient_scope re-authentication path and explain when scope widening is required.


    Current State

    Claim Status
    Step-up re-authorization for 403 insufficient_scope was undocumented RESOLVED
    Refresh behavior vs re-authorization behavior was unclear RESOLVED

    Suggested Fix

    N/A - issue has been resolved.


    References


    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_scope re-authentication path and clarifies how that behavior differs from ordinary token refresh, so the reported documentation gap is no longer present.

  7. removed
    stale
    on May 10, 2026
  8. github-actions commented on Jun 29, 2026

    @github-actions

    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.

  9. locked as resolved and limited conversation to collaborators on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions