modelcontextprotocol / modelcontextprotocol/typescript-sdk

Support upscoping on insufficient_scope 403 like in Python SDK

Open
#1,039 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auth enhancement needs decision P3 potentially close
Dominant language
TypeScript
Stars
13.4k
Forks
2.2k
Avg merge
3d 15h
Merged PRs (30d)
4

Description

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Python auth SDK supports upscoping on 403 insufficient scope errors. Typescript does not have this functionality yet. https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/auth.py

Describe the solution you'd like

Equivalent functionality to the 403 handling case here:
https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/auth.py

Describe alternatives you've considered

None.

Additional context
None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the linked Python SDK implementation in src/mcp/client/auth.py with the TypeScript SDK's authentication and 403 handling entry points. Implement equivalent upscoping behavior for insufficient_scope responses, then verify that the TypeScript client handles the flow consistently with the Python SDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, authorization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.