(body: unknown, sessionId?: string)
| 122 | await addOrgIntegration(organizationId); |
| 123 | |
| 124 | const mcp = (body: unknown, sessionId?: string) => |
| 125 | handler( |
| 126 | new Request(`${BASE}/mcp`, { |
| 127 | method: "POST", |
| 128 | headers: { |
| 129 | authorization: `Bearer ${token}`, |
| 130 | "content-type": "application/json", |
| 131 | accept: "application/json, text/event-stream", |
| 132 | ...(sessionId ? { "mcp-session-id": sessionId } : {}), |
| 133 | }, |
| 134 | body: JSON.stringify(body), |
| 135 | }), |
| 136 | ); |
| 137 | |
| 138 | const init = await mcp({ |
| 139 | jsonrpc: "2.0", |
no test coverage detected