MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getServerCacheKey

Function getServerCacheKey

source code/services/mcp/client.ts:583–588  ·  view source on GitHub ↗
(
  name: string,
  serverRef: ScopedMcpServerConfig,
)

Source from the content-addressed store, hash-verified

581 * @returns Cache key string
582 */
583export function getServerCacheKey(
584 name: string,
585 serverRef: ScopedMcpServerConfig,
586): string {
587 return `${name}-${jsonStringify(serverRef)}`
588}
589
590/**
591 * 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