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/resultandtasks/listrefused 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
- v2: extension methods shadowed by legacy spec-method registry — custom tasks/get & tasks/cancel handlers unreachable (-32601 before handler lookup), czh2774, opened 2026-08-01; closed as completed on 2026-09-30: "before custom request handlers are consulted".
- fix(core): serve tasks/get and tasks/cancel on 2026-07-28 with an explicit schema, freya0926, merged 2026-09-30.
- Comment by freya0926, 2026-08-01; parent issue closed as completed 2026-09-30.
- Comment by AndresSaa, 2026-08-10; parent issue closed as completed 2026-09-30.
- v2.3.0, 2026-10-02 (stable).
- v2.4.0, 2026-10-23 (stable).
- Source at v2.4.0: docs/migration/support-2026-07-28.md, read 2026-11-24.
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