`v2` - RFC Extract Tasks out of protocol.ts into TaskManager by KKonstantinov · Pull Request #1673 · modelcontextprotocol/typescript-sdk

@KKonstantinov

…re and task MQ on constructor

and others added 6 commits

March 12, 2026 19:45
…lity' of github.com:KKonstantinov/typescript-sdk into feature/extract-tasks-in-task-manager-trigger-on-capability

@KKonstantinov

@KKonstantinov

mcp-claude[bot]

felixweinberger

@KKonstantinov

…lity' of github.com:KKonstantinov/typescript-sdk into feature/extract-tasks-in-task-manager-trigger-on-capability

@KKonstantinov

@KKonstantinov

@felixweinberger

claude[bot]

claude[bot]

…lity

Restores the assertTaskHandlerCapability check that was inadvertently
skipped when the server has no tasks capability configured. On main,
this check ran unconditionally in Protocol._onrequest; after extraction
it moved behind the validateInbound callback which NullTaskManager
wasn't providing.
…r-on-capability

Resolves conflicts in experimental/tasks/{client,server}.ts by
combining main's non-generic getTaskResult signature (hardcoded
GetTaskPayloadResultSchema) with this PR's _module call pattern
(no unsafe casts).

@felixweinberger

isTaskAugmentedRequestParams returns true for any valid params since
the task field is optional in the schema. Check request.params.task
presence to correctly detect task-augmented requests.

@felixweinberger

claude[bot]

@felixweinberger

claude[bot]

felixweinberger

felixweinberger added a commit to KKonstantinov/typescript-sdk that referenced this pull request

Mar 25, 2026
- protocol.ts imports: keep modelcontextprotocol#1673's reduced list, apply this PR's
  ../types/index.js path
- taskManager.ts: update import paths to ../types/index.js
- exports/public/index.ts: move RequestTaskStore, TaskContext,
  TaskRequestOptions from protocol.js to taskManager.js, add
  TaskManagerOptions export

This was referenced

Mar 26, 2026

This was referenced

Mar 27, 2026

This was referenced

Mar 24, 2026