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

Function pairs

tests/coverage_live_v2_native.py:28–33  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

requireFunction · 0.90

Tested by

no test coverage detected