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

Function stdioEnvVarNames

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

Source from the content-addressed store, hash-verified

412 * declaration plus the keys of any one-shot `env` values, de-duplicated and
413 * order-preserving. */
414const stdioEnvVarNames = (input: McpStdioServerInput): readonly string[] => {
415 const names = new Set<string>(input.envVars ?? []);
416 for (const key of Object.keys(input.env ?? {})) names.add(key);
417 return [...names];
418};
419
420/** Exported for tests: the credential/non-credential split is a security
421 * 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