modelcontextprotocol / modelcontextprotocol/typescript-sdk
Support upscoping on insufficient_scope 403 like in Python SDK
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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