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

Function stdioEnvVarNames

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

Source from the content-addressed store, hash-verified

337 * declaration plus the keys of any one-shot `env` values, de-duplicated and
338 * order-preserving. */
339const stdioEnvVarNames = (input: McpStdioServerInput): readonly string[] => {
340 const names = new Set<string>(input.envVars ?? []);
341 for (const key of Object.keys(input.env ?? {})) names.add(key);
342 return [...names];
343};
344
345const toIntegrationConfig = (input: McpServerInput): McpIntegrationConfigType => {
346 if (input.transport === "stdio") {

Callers 2

toIntegrationConfigFunction · 0.85
addServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected