MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getMcpServerSignature

Function getMcpServerSignature

src/services/mcp/config.ts:202–212  ·  view source on GitHub ↗
(config: McpServerConfig)

Source from the content-addressed store, hash-verified

200 * Returns null only for configs with neither command nor url (sdk type).
201 */
202export 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

Callers 3

runFunction · 0.85
dedupPluginMcpServersFunction · 0.85
dedupClaudeAiMcpServersFunction · 0.85

Calls 4

getServerCommandArrayFunction · 0.85
jsonStringifyFunction · 0.85
getServerUrlFunction · 0.85
unwrapCcrProxyUrlFunction · 0.85

Tested by

no test coverage detected