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