| 4 | import { Client } from "@modelcontextprotocol/sdk/client/index.js"; |
| 5 | |
| 6 | export interface McpRequestMessage { |
| 7 | jsonrpc?: "2.0"; |
| 8 | id?: string | number; |
| 9 | method: "tools/call" | string; |
| 10 | params?: { |
| 11 | [key: string]: unknown; |
| 12 | }; |
| 13 | } |
| 14 | |
| 15 | export const McpRequestMessageSchema: z.ZodType<McpRequestMessage> = z.object({ |
| 16 | jsonrpc: z.literal("2.0").optional(), |
nothing calls this directly
no outgoing calls
no test coverage detected