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

Function runtime

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

Source from the content-addressed store, hash-verified

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

Callers 3

listToolsFunction · 0.85
describeToolsFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected