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

Function execute

e2e/cloud/mcp-session-cap-eviction.test.ts:200–211  ·  view source on GitHub ↗
(
  mcpUrl: string,
  bearer: string,
  sessionId: string,
  id: string,
  code: string,
)

Source from the content-addressed store, hash-verified

198
199/** Run `execute` and return the response text once the call has fully settled. */
200const execute = async (
201 mcpUrl: string,
202 bearer: string,
203 sessionId: string,
204 id: string,
205 code: string,
206): Promise<string> => {
207 const response = await postJson(mcpUrl, bearer, executeBody(id, code), sessionId);
208 const body = await response.text();
209 expect(response.status, `execute ${id} is served`).toBe(200);
210 return body;
211};
212
213scenario(
214 "MCP session · crossing the resident-runtime cap evicts a session through a real cross-DO request",

Calls 3

postJsonFunction · 0.70
executeBodyFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected