(input: McpStdioServerInput)
| 456 | * declaration plus the keys of any one-shot `env` values, de-duplicated and |
| 457 | * order-preserving. */ |
| 458 | const stdioEnvVarNames = (input: McpStdioServerInput): readonly string[] => { |
| 459 | const names = new Set<string>(input.envVars ?? []); |
| 460 | for (const key of Object.keys(input.env ?? {})) names.add(key); |
| 461 | return [...names]; |
| 462 | }; |
| 463 | |
| 464 | /** Exported for tests: the credential/non-credential split is a security |
| 465 | * boundary (a value in `env` becomes something the user is asked to type), |
no outgoing calls
no test coverage detected