Files
codebase-memory-mcp/tests
Martin Vogel 29bf1cd8c1 mcp: optional CBM_ALLOWED_ROOT boundary for index_repository
index_repository canonicalizes repo_path but imposes no workspace boundary,
so a caller-supplied path can resolve anywhere on disk. Add an opt-in
CBM_ALLOWED_ROOT: when set, a repo_path that resolves outside it is refused
(reusing the same containment check the read sinks use). Unset by default, so
the standard index-the-given-path behaviour is unchanged; deployments where
repo_path may be influenced by an untrusted caller can set a boundary.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-07-07 22:13:09 +02:00
..
2026-06-28 13:05:05 +02:00