()
| 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 () => { |
no outgoing calls
no test coverage detected