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