(config: McpServerConfig)
| 200 | * Returns null only for configs with neither command nor url (sdk type). |
| 201 | */ |
| 202 | export function getMcpServerSignature(config: McpServerConfig): string | null { |
| 203 | const cmd = getServerCommandArray(config) |
| 204 | if (cmd) { |
| 205 | return `stdio:${jsonStringify(cmd)}` |
| 206 | } |
| 207 | const url = getServerUrl(config) |
| 208 | if (url) { |
| 209 | return `url:${unwrapCcrProxyUrl(url)}` |
| 210 | } |
| 211 | return null |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Filter plugin MCP servers, dropping any whose signature matches a |
no test coverage detected