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

Function runtime

e2e/src/surfaces/mcp.ts:388–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386 };
387
388 const runtime = () => {
389 if (!runtimePromise) {
390 const dir = mkdtempSync(join(tmpdir(), "executor-e2e-mcp-"));
391 writeFileSync(
392 join(dir, "mcporter.json"),
393 JSON.stringify({
394 mcpServers: { [serverName]: { url: sessionUrl } },
395 }),
396 );
397 runtimePromise = createRuntime({
398 configPath: join(dir, "mcporter.json"),
399 });
400 }
401 return runtimePromise;
402 };
403
404 const listTools = () =>
405 Effect.promise(async () => {

Callers 3

listToolsFunction · 0.85
describeToolsFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected