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

Function stdioEnvVarNames

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

Source from the content-addressed store, hash-verified

352 * declaration plus the keys of any one-shot `env` values, de-duplicated and
353 * order-preserving. */
354const stdioEnvVarNames = (input: McpStdioServerInput): readonly string[] => {
355 const names = new Set<string>(input.envVars ?? []);
356 for (const key of Object.keys(input.env ?? {})) names.add(key);
357 return [...names];
358};
359
360const toIntegrationConfig = (input: McpServerInput): McpIntegrationConfigType => {
361 if (input.transport === "stdio") {

Callers 2

toIntegrationConfigFunction · 0.85
addServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected