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

Function stdioEnvVarNames

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

Source from the content-addressed store, hash-verified

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

Callers 2

toIntegrationConfigFunction · 0.85
addServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected