modelcontextprotocol / modelcontextprotocol/typescript-sdk

Completables should pass through authInfo and signal

Open
#2,029 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auth enhancement needs decision P3
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.