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

Function stdioEnvVarNames

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

Source from the content-addressed store, hash-verified

421 * declaration plus the keys of any one-shot `env` values, de-duplicated and
422 * order-preserving. */
423const stdioEnvVarNames = (input: McpStdioServerInput): readonly string[] => {
424 const names = new Set<string>(input.envVars ?? []);
425 for (const key of Object.keys(input.env ?? {})) names.add(key);
426 return [...names];
427};
428
429/** Exported for tests: the credential/non-credential split is a security
430 * 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