This is the documentation for the v2 beta — looking for the v1 documentation?
Skip to content

MCP TypeScript SDK (V2) / @modelcontextprotocol/codemod / migrations/v1-to-v2/mappings/schemaToMethodMap

migrations/v1-to-v2/mappings/schemaToMethodMap

Variables

NOTIFICATION_SCHEMA_TO_METHOD

const NOTIFICATION_SCHEMA_TO_METHOD: Record<string, string>

Defined in: migrations/v1-to-v2/mappings/schemaToMethodMap.ts:20


REMOVED_TASK_SCHEMAS

const REMOVED_TASK_SCHEMAS: ReadonlySet<string>

Defined in: migrations/v1-to-v2/mappings/schemaToMethodMap.ts:40

v1 task-handler schema names. The experimental tasks feature was removed in v2 (SEP-2663) and the task method strings are excluded from the typed RequestMethod / NotificationMethod surface, so these are NOT in the rewrite maps above — the handler-registration transform emits a dedicated action-required diagnostic instead.


SCHEMA_TO_METHOD

const SCHEMA_TO_METHOD: Record<string, string>

Defined in: migrations/v1-to-v2/mappings/schemaToMethodMap.ts:1