mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-29 07:13:44 +08:00
Attach the normal config store before one-shot CLI tool dispatch so CLI calls honor the same registry defaults and env/config overrides as the stdio MCP server. This keeps explicit path search auto-indexing enabled by default for user-facing CLI calls while embedded/no-config helpers remain manual unless CBM_AUTO_INDEX explicitly opts in. Clarify tool/config/help strings to describe the real behavior: streamlined lists 5 core tools plus _hidden_tools discovery, get_architecture is available after reveal or classic mode, and default tools can auto-index the server CWD or explicit repository paths when enabled. Validation: - make -f Makefile.cbm cbm build/c/test-runner - CBM_ONLY_SUITE=mcp build/c/test-runner: 113 passed - CBM_ONLY_SUITE=tool_consolidation build/c/test-runner: 94 passed - CBM_ONLY_SUITE=input_validation build/c/test-runner: 43 passed - CBM_ONLY_SUITE=cli build/c/test-runner: 102 passed - CLI smoke: isolated explicit repo path auto-indexed without CBM_AUTO_INDEX=true and returned cli_autoindex_sentinel - CLI stdout/stderr split: JSON on stdout, logs on stderr - git diff --check Signed-off-by: Andrew Hundt <ATHundt@gmail.com>