Files
codebase-memory-mcp/tests
Martin VogelandClaude Fable 5.1 208ee99c86 fix(mcp): bound the non-git auto_index guard by discovery count, not git ls-files (#713)
auto_index_limit was bypassed for a non-git root because the admission guard
counted `git ls-files`, which is 0 outside a repo, so the whole tree was
walked into tens of GB of RAM. Bound the check by the discovery layer's
bounded count with the limit as the ceiling; a non-git root over the limit is
refused with the limit named, and git roots are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-09-08 20:38:22 +02:00
..