(projectServers: McpServerConfig[], blockServers: McpServerConfig[])
| 247 | } |
| 248 | |
| 249 | export function mergeMcpConfigs(projectServers: McpServerConfig[], blockServers: McpServerConfig[]): McpServerConfig[] { |
| 250 | const byName = new Map<string, McpServerConfig>() |
| 251 | for (const s of projectServers) { |
| 252 | byName.set(s.name, s) |
| 253 | } |
| 254 | for (const s of blockServers) { |
| 255 | byName.set(s.name, s) |
| 256 | } |
| 257 | return Array.from(byName.values()) |
| 258 | } |
no outgoing calls
no test coverage detected