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

Function generateContentHash

source code/utils/plugins/mcpbHandler.ts:95–97  ·  view source on GitHub ↗

* Generate content hash for an MCPB file

(data: Uint8Array)

Source from the content-addressed store, hash-verified

93 * Generate content hash for an MCPB file
94 */
95function generateContentHash(data: Uint8Array): string {
96 return createHash('sha256').update(data).digest('hex').substring(0, 16)
97}
98
99/**
100 * Get cache directory for MCPB files

Callers 1

loadMcpbFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected