()
| 33 | }); |
| 34 | |
| 35 | const allowStdio = (): boolean => { |
| 36 | const mcp = executorConfig.plugins().find((plugin) => plugin.id === "mcp"); |
| 37 | expect(mcp).toBeDefined(); |
| 38 | const clientConfig = mcp?.clientConfig; |
| 39 | if ( |
| 40 | clientConfig && |
| 41 | typeof clientConfig === "object" && |
| 42 | "allowStdio" in clientConfig && |
| 43 | typeof clientConfig.allowStdio === "boolean" |
| 44 | ) { |
| 45 | return clientConfig.allowStdio; |
| 46 | } |
| 47 | expect.fail("MCP plugin did not expose its stdio setting"); |
| 48 | return false; |
| 49 | }; |
| 50 | |
| 51 | test("stdio MCP stays disabled when the opt-in is absent", () => { |
| 52 | delete process.env[ENV_NAME]; |
no outgoing calls
no test coverage detected