* Substitutes environment variable references in all values of a record.
( record: Record<string, string>, )
| 37 | * Substitutes environment variable references in all values of a record. |
| 38 | */ |
| 39 | function substituteEnvInRecord( |
| 40 | record: Record<string, string>, |
| 41 | ): Record<string, string> { |
| 42 | const result: Record<string, string> = {} |
| 43 | for (const [key, value] of Object.entries(record)) { |
| 44 | result[key] = substituteEnvInValue(value) |
| 45 | } |
| 46 | return result |
| 47 | } |
| 48 | |
| 49 | function hashConfig(config: MCPConfig): string { |
| 50 | if (config.type === 'stdio') { |
no test coverage detected