Repository navigation
Description
Problem
#2316 asked us to extract the Inspector's Tasks implementation into a wrapper SDK that other clients could use. That has already happened upstream. modelcontextprotocol/ext-tasks#21 (merged 2026-09-23) reshaped the Inspector's implementation into @modelcontextprotocol/ext-tasks, which is published (0.2.2, 2026-09-30, peer @modelcontextprotocol/client ^2.0.0). It covers both protocol generations:
- Schemas: the 2025-11-25 and 2026-07-28 Tasks wire formats.
- Requester side: calling tools as tasks,
tasks/getpolling,tasks/updateinput rounds, cancel and list. - Receiver side: task-augmented sampling and elicitation.
So the Inspector is now carrying a second copy of logic the extension's own SDK owns.
What to do
Take @modelcontextprotocol/ext-tasks as a dependency and replace the Inspector's Tasks shim code with it:
-
Drive requester tasks through
createTaskSessionFromClientand receiver tasks throughbindTaskReceiver. -
Delete the Inspector's own copies: the 2026-07-28 Tasks schemas, the poll driver, the
tasks/*request methods, the receiver-task bookkeeping, and the transport-level rewrite ofresultType: "task"results. -
Move what the package deliberately leaves to its host into
core/extension/tasks/, importing nothing fromInspectorClient:- the raw request channel the package requires as
rawDispatchfor 2026-07-28 traffic the SDK rejects - progress routing for task-backed calls
- error conversion back to SDK error types, task-view conversion, and the negotiation check
That gives later extensions, such as Skills, a
core/extension/<name>/shape to follow. - the raw request channel the package requires as
-
Declare the package at the root, name it in all three bundler
externallists, and add it tosdk-watchas its own upstream group.
No user-facing behavior change: the Tasks UI is untouched, and both eras must keep working end to end.
Relationship to #2316
This replaces #2316. That issue's goal, getting the Tasks implementation into a reusable SDK owned by the extension, was met upstream, so what's left on our side is adopting that SDK. @LucaButBoring's speculative #2308 targeted the same package from a local path, and the implementation builds on it.
Activity
cliffhall commentedon Oct 4, 2026
Shipped in #2564 (merged to
v2/mainas 9393237).