Skip to content

Adopt @modelcontextprotocol/ext-tasks and replace the Inspector's Tasks shims #2565

Closed

Description

@cliffhall

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/get polling, tasks/update input 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 createTaskSessionFromClient and receiver tasks through bindTaskReceiver.

  • 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 of resultType: "task" results.

  • Move what the package deliberately leaves to its host into core/extension/tasks/, importing nothing from InspectorClient:

    • the raw request channel the package requires as rawDispatch for 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.

  • Declare the package at the root, name it in all three bundler external lists, and add it to sdk-watch as 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

  1. added this to the v2.10.0 milestone on Oct 4, 2026
  2. added
    v2
    chore
    on Oct 4, 2026
  3. self-assigned this
    on Oct 4, 2026
  4. cliffhall commented on Oct 4, 2026

    @cliffhall
    MemberAuthor

    Shipped in #2564 (merged to v2/main as 9393237).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chorev2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions