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

Function execute

e2e/cloud/mcp-session-idle-runtime-disposal.test.ts:159–170  ·  view source on GitHub ↗
(
  mcpUrl: string,
  bearer: string,
  sessionId: string,
  id: string,
  code: string,
)

Source from the content-addressed store, hash-verified

157
158/** Run `execute` and return the response text once the call has fully settled. */
159const execute = async (
160 mcpUrl: string,
161 bearer: string,
162 sessionId: string,
163 id: string,
164 code: string,
165): Promise<string> => {
166 const response = await postJson(mcpUrl, bearer, executeBody(id, code), sessionId);
167 const body = await response.text();
168 expect(response.status, `execute ${id} is served`).toBe(200);
169 return body;
170};
171
172scenario(
173 "MCP session · an idle session disposes its runtime while the client stream stays open",

Calls 3

postJsonFunction · 0.70
executeBodyFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected