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

Function runtime

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

Source from the content-addressed store, hash-verified

369 };
370
371 const runtime = () => {
372 if (!runtimePromise) {
373 const dir = mkdtempSync(join(tmpdir(), "executor-e2e-mcp-"));
374 writeFileSync(
375 join(dir, "mcporter.json"),
376 JSON.stringify({
377 mcpServers: { [serverName]: { url: sessionUrl } },
378 }),
379 );
380 runtimePromise = createRuntime({
381 configPath: join(dir, "mcporter.json"),
382 });
383 }
384 return runtimePromise;
385 };
386
387 const listTools = () =>
388 Effect.promise(async () => {

Callers 3

listToolsFunction · 0.85
describeToolsFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected