modelcontextprotocol / modelcontextprotocol/typescript-sdk
Completables should pass through authInfo and signal
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.
When using an auth-based system, not all users will have access to all values. For example, a tool call to change settings for a shared workspace should only auto-complete workspace IDs the user can actually access.
Describe the solution you'd like
CompleteCallback and the flows that invoke it should pass through at a minimum authInfo and signal from the request, but ideally just the whole RequestHandlerExtra object.
Describe alternatives you've considered
I don't believe there is an alternative at the moment without getting deep into the weeds of monkey-patching McpServer internals in a number of places.
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
Trace CompleteCallback and the flows that invoke it through McpServer, starting with the request-handling path and RequestHandlerExtra references. Done means completion callbacks consistently receive the request's authInfo and signal, or the whole RequestHandlerExtra object, across those flows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100