(input: McpStdioServerInput)
| 412 | * declaration plus the keys of any one-shot `env` values, de-duplicated and |
| 413 | * order-preserving. */ |
| 414 | const 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), |
no outgoing calls
no test coverage detected