MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getMetadataPath

Function getMetadataPath

src/utils/plugins/mcpbHandler.ts:117–123  ·  view source on GitHub ↗

* Get metadata file path for cached MCPB

(cacheDir: string, source: string)

Source from the content-addressed store, hash-verified

115 * Get metadata file path for cached MCPB
116 */
117function getMetadataPath(cacheDir: string, source: string): string {
118 const sourceHash = createHash('md5')
119 .update(source)
120 .digest('hex')
121 .substring(0, 8)
122 return join(cacheDir, `${sourceHash}.metadata.json`)
123}
124
125/**
126 * Compose the secureStorage key for a per-server secret bucket.

Callers 2

loadCacheMetadataFunction · 0.85
saveCacheMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected