MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / call

Function call

packages/hosts/mcp/src/in-memory-session-store.test.ts:160–177  ·  view source on GitHub ↗
(sessionId: string, id: number)

Source from the content-addressed store, hash-verified

158 const open = (): Promise<string> => openSession(sessions);
159
160 const call = (sessionId: string, id: number) =>
161 Effect.runPromise(
162 sessions.store.dispatch({
163 request: new Request("https://executor.test/mcp", {
164 method: "POST",
165 headers: {
166 "content-type": "application/json",
167 accept: "application/json, text/event-stream",
168 "mcp-session-id": sessionId,
169 },
170 body: JSON.stringify({ jsonrpc: "2.0", id, method: "tools/list" }),
171 }),
172 principal: TEST_PRINCIPAL,
173 resource: defaultMcpResource,
174 sessionId,
175 method: "POST",
176 }),
177 );
178
179 // oxlint-disable-next-line executor/no-try-catch-or-throw -- test boundary: always close the store
180 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected