Files
codebase-memory-mcp/tests
Andrew Hundt cce2365269 fix: scope architecture summaries by path
Port upstream get_architecture path scoping while preserving fork-specific route filtering, hotspot limits, Leiden resolution tuning, and cluster labels.

Add shared store helpers for normalized path prefixes, scoped node/edge/schema counts, and a scoped architecture entry point while keeping the existing store API as a no-path wrapper for internal compatibility.

MCP get_architecture now accepts path, emits normalized path plus root/scoped totals when scoped, and scopes architecture sections consistently. Tests cover store scoping, trailing slash/backslash normalization, and MCP response filtering.

Verified: make -f Makefile.cbm build/c/test-runner; make -B -f Makefile.cbm build/c/codebase-memory-mcp; make -f Makefile.cbm build/c/codebase-memory-mcp; CBM_ONLY_SUITE=store_arch, mcp, tool_consolidation.
Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
2026-06-28 18:36:04 -04:00
..
2026-06-03 02:13:30 +02:00