typescript-sdk/.changeset/codemod-task-handler-methods.md
Felix Weinberger 1823aae891
Implement MCP 2026-07-28 (#2286)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-26 14:01:10 +01:00

640 B

@modelcontextprotocol/codemod
patch

Emit a dedicated action-required diagnostic for v1 task-handler registrations (setRequestHandler(GetTaskRequestSchema, …), setNotificationHandler(TaskStatusNotificationSchema, …), and the other tasks/* schemas). The experimental tasks feature was removed in v2 (SEP-2663) and the tasks/* method strings are excluded from the typed RequestMethod / NotificationMethod surface, so these registrations are not rewritten to method-string form — the codemod marks each site with an @mcp-codemod-error comment pointing at the migration guide's tasks-removed section instead.