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