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

Function allowStdio

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

Source from the content-addressed store, hash-verified

40});
41
42const 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
58test("stdio MCP stays disabled when the opt-in is absent", () => {
59 delete process.env[ENV_NAME];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected