MCPcopy
hub / github.com/claude-code-best/claude-code / getServerCacheKey

Function getServerCacheKey

src/services/mcp/client.ts:582–587  ·  view source on GitHub ↗
(
  name: string,
  serverRef: ScopedMcpServerConfig,
)

Source from the content-addressed store, hash-verified

580 * @returns Cache key string
581 */
582export function getServerCacheKey(
583 name: string,
584 serverRef: ScopedMcpServerConfig,
585): string {
586 return `${name}-${jsonStringify(serverRef)}`
587}
588
589/**
590 * TODO (ollie): The memoization here increases complexity by a lot, and im not sure it really improves performance

Callers 2

client.tsFile · 0.85
clearServerCacheFunction · 0.85

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected