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

Function stdioEnvVarNames

packages/plugins/mcp/src/sdk/plugin.ts:458–462  ·  view source on GitHub ↗
(input: McpStdioServerInput)

Source from the content-addressed store, hash-verified

456 * declaration plus the keys of any one-shot `env` values, de-duplicated and
457 * order-preserving. */
458const stdioEnvVarNames = (input: McpStdioServerInput): readonly string[] => {
459 const names = new Set<string>(input.envVars ?? []);
460 for (const key of Object.keys(input.env ?? {})) names.add(key);
461 return [...names];
462};
463
464/** Exported for tests: the credential/non-credential split is a security
465 * boundary (a value in `env` becomes something the user is asked to type),

Callers 2

toIntegrationConfigFunction · 0.85
addServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected