MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / allowStdio

Function allowStdio

apps/host-selfhost/src/executor-config.test.ts:35–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33});
34
35const 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
51test("stdio MCP stays disabled when the opt-in is absent", () => {
52 delete process.env[ENV_NAME];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected