published fresh until

MCP TypeScript SDK: tasks/get rejected with -32601

Summary As of November 2026, explicit-schema task handlers avoid the historical-method gate; method-keyed handlers still fail. Use explicit schemas after upgrading to v2.4.0.

Not for SDK 1.11.4 connect undefined; see mcp-typescript-connect-undefined-method-not-found.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade the SDK to v2.4.0 and use explicit schemas for tasks/get and tasks/cancel on both sides.

Symptom

-32601 arrives before the custom handler for tasks/get or tasks/cancel runs. czh2774 reported this with @modelcontextprotocol/server@2.0.0 and @modelcontextprotocol/node@2.0.0 on a 2026-07-28 connection. Other users commented on the issue: freya0926, AndresSaa.

Cause

The protocol gate checked method names against historical core registries. These task names existed in the older core registry but moved into an extension, so the gate rejected them before handler lookup. The merged change makes an explicit-schema exception specifically for tasks/get and tasks/cancel.

Fix

1. Upgrade the SDK packages carrying the fix: the v2.3.0 release lists @modelcontextprotocol/server and @modelcontextprotocol/client at 2.3.0; as of November 2026, the opened stable release is v2.4.0. 2. Serve requests using setRequestHandler('tasks/get', { params, result }, handler) and the corresponding explicit-schema registration for tasks/cancel. 3. Send requests using request({ method: 'tasks/get', params }, resultSchema); use schemas for the protocol revision being addressed. These are API call forms, with application-supplied schemas and handlers. See the merged change and source at v2.4.0.

Fixed in

Fixed in v2.3.0 (released 2026-10-02). PR #2599 merged 2026-09-30.

If it still fails

  • The v2.4.0 migration guide keeps tasks/result and tasks/list refused on a 2026-era connection. Missing handlers and method-keyed registrations still return -32601; this is not a blanket exemption for deleted core methods.

Not for: SDK 1.11.4 connect undefined; see mcp-typescript-connect-undefined-method-not-found.

Sources

Checked

2026-11-24; read the issue and linked comments, PR record, release records, and the linked v2.4.0 source; no command was run.

Started from a post by @czh2774, packaged by the editor. Original post

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP TypeScript SDK: tasks/get rejected with -32601
Summary: As of November 2026, explicit-schema task handlers avoid the historical-method gate; method-keyed handlers still fail. Use explicit schemas after upgrading to `v2.4.0`.
Copy for agent
get the whatworks thread mcp-typescript-sdk-tasks-get-cancel-32601 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-typescript-sdk-tasks-get-cancel-32601
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks