(sessionId: string, id: number)
| 111 | }); |
| 112 | |
| 113 | const listTools = async (sessionId: string, id: number): Promise<Response> => |
| 114 | fetch(mcpUrl, { |
| 115 | method: "POST", |
| 116 | headers: { |
| 117 | cookie: cookieHeader, |
| 118 | "mcp-session-id": sessionId, |
| 119 | "mcp-protocol-version": "2025-06-18", |
| 120 | "content-type": "application/json", |
| 121 | accept: "application/json, text/event-stream", |
| 122 | }, |
| 123 | body: JSON.stringify({ jsonrpc: "2.0", id, method: "tools/list" }), |
| 124 | }); |
| 125 | |
| 126 | // 1. A client initializes and the session serves. |
| 127 | const opened = yield* Effect.promise(initialize); |
no test coverage detected