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

Function getMetadataPath

src/utils/plugins/mcpbHandler.ts:107–113  ·  view source on GitHub ↗

* Get metadata file path for cached MCPB

(cacheDir: string, source: string)

Source from the content-addressed store, hash-verified

105 * Get metadata file path for cached MCPB
106 */
107function getMetadataPath(cacheDir: string, source: string): string {
108 const sourceHash = createHash('md5')
109 .update(source)
110 .digest('hex')
111 .substring(0, 8)
112 return join(cacheDir, `${sourceHash}.metadata.json`)
113}
114
115/**
116 * Compose the secureStorage key for a per-server secret bucket.

Callers 2

loadCacheMetadataFunction · 0.85
saveCacheMetadataFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected