MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / json_read

Function json_read

tests/coverage_live_v2_native.py:27–34  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

25
26
27def json_read(path):
28 def pairs(items):
29 result = {}
30 for key, value in items:
31 require(key not in result, "duplicate metadata key")
32 result[key] = value
33 return result
34 return json.loads(read(path, 4 * 1024 * 1024).decode("utf-8"), object_pairs_hook=pairs)
35
36
37def native_summary(data, failed=False):

Callers 2

bundleFunction · 0.85
failed_nativeFunction · 0.85

Calls 1

readFunction · 0.70

Tested by

no test coverage detected