MCPcopy Create free account
hub / github.com/Noumena-Network/code / getServerCacheKey

Function getServerCacheKey

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

Source from the content-addressed store, hash-verified

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