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