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

Function getMetadataPath

source code/utils/plugins/mcpbHandler.ts:109–115  ·  view source on GitHub ↗

* Get metadata file path for cached MCPB

(cacheDir: string, source: string)

Source from the content-addressed store, hash-verified

107 * Get metadata file path for cached MCPB
108 */
109function getMetadataPath(cacheDir: string, source: string): string {
110 const sourceHash = createHash('md5')
111 .update(source)
112 .digest('hex')
113 .substring(0, 8)
114 return join(cacheDir, `${sourceHash}.metadata.json`)
115}
116
117/**
118 * 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