Maps each MCP request method to its SDK result type.
| 72 | |
| 73 | /** Maps each MCP request method to its SDK result type. */ |
| 74 | interface McpResultMap { |
| 75 | ping: EmptyResult; |
| 76 | initialize: InitializeResult; |
| 77 | "tools/list": ListToolsResult; |
| 78 | "tools/call": CallToolResult; |
| 79 | "resources/list": ListResourcesResult; |
| 80 | "resources/templates/list": ListResourceTemplatesResult; |
| 81 | "resources/read": ReadResourceResult; |
| 82 | "resources/subscribe": EmptyResult; |
| 83 | "resources/unsubscribe": EmptyResult; |
| 84 | "prompts/list": ListPromptsResult; |
| 85 | "prompts/get": GetPromptResult; |
| 86 | "completion/complete": CompleteResult; |
| 87 | "logging/setLevel": EmptyResult; |
| 88 | "tasks/get": GetTaskResult; |
| 89 | "tasks/result": GetTaskPayloadResult; |
| 90 | "tasks/list": ListTasksResult; |
| 91 | "tasks/cancel": CancelTaskResult; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Map an MCP method string to its corresponding result type. |
nothing calls this directly
no outgoing calls
no test coverage detected