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

Function execute

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

Source from the content-addressed store, hash-verified

115
116/** Run `execute` and return the response text once the call has fully settled. */
117const execute = async (
118 mcpUrl: string,
119 bearer: string,
120 sessionId: string,
121 id: string,
122 code: string,
123): Promise<string> => {
124 const response = await postJson(mcpUrl, bearer, executeBody(id, code), sessionId);
125 const body = await response.text();
126 expect(response.status, `execute ${id} is served`).toBe(200);
127 return body;
128};
129
130scenario(
131 "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