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

Function runtime

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

Source from the content-addressed store, hash-verified

399 };
400
401 const runtime = () => {
402 if (!runtimePromise) {
403 const dir = mkdtempSync(join(tmpdir(), "executor-e2e-mcp-"));
404 writeFileSync(
405 join(dir, "mcporter.json"),
406 JSON.stringify({
407 mcpServers: { [serverName]: { url: sessionUrl } },
408 }),
409 );
410 runtimePromise = createRuntime({
411 configPath: join(dir, "mcporter.json"),
412 });
413 }
414 return runtimePromise;
415 };
416
417 const listTools = () =>
418 Effect.promise(async () => {

Callers 3

listToolsFunction · 0.85
describeToolsFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected