MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / generateContentHash

Function generateContentHash

src/utils/plugins/mcpbHandler.ts:103–105  ·  view source on GitHub ↗

* Generate content hash for an MCPB file

(data: Uint8Array)

Source from the content-addressed store, hash-verified

101 * Generate content hash for an MCPB file
102 */
103function generateContentHash(data: Uint8Array): string {
104 return createHash('sha256').update(data).digest('hex').substring(0, 16)
105}
106
107/**
108 * Get cache directory for MCPB files

Callers 1

loadMcpbFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected