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

Function getServerCacheKey

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

Source from the content-addressed store, hash-verified

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