mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-29 07:13:44 +08:00
docs: clarify tool surface descriptions
Remove brittle hardcoded tool-count wording from MCP hidden-tool and CLI config descriptions. Keep the concrete tool names and discovery instructions intact so maintainers and MCP clients see the same capabilities without stale numeric claims. Verification: make -f Makefile.cbm build/c/test-runner build/c/codebase-memory-mcp; CBM_ONLY_SUITE=tool_consolidation build/c/test-runner; CBM_ONLY_SUITE=mcp build/c/test-runner; CBM_ONLY_SUITE=cli build/c/test-runner. Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
This commit is contained in:
+2
-2
@@ -2751,9 +2751,9 @@ const cbm_config_entry_t CBM_CONFIG_REGISTRY[] = {
|
||||
{"tool_mode", "streamlined", "CBM_TOOL_MODE", "Tools",
|
||||
"Which tool surface the MCP server lists by default",
|
||||
"streamlined|classic",
|
||||
"'streamlined' (default): lists 5 core tools plus _hidden_tools discovery: "
|
||||
"'streamlined' (default): lists core tools plus _hidden_tools discovery: "
|
||||
"search_graph, query_graph, search_code, trace_path, get_code. "
|
||||
"'classic': exposes all 15 individual tools including index_repository, get_code_snippet, get_architecture, "
|
||||
"'classic': exposes all individual tools including index_repository, get_code_snippet, get_architecture, "
|
||||
"list_projects, detect_changes, manage_adr, etc. "
|
||||
"You can also enable individual classic tools without switching modes: "
|
||||
"config set tool_index_repository true"},
|
||||
|
||||
+2
-2
@@ -1057,12 +1057,12 @@ char *cbm_mcp_tools_list(cbm_mcp_server_t *srv) {
|
||||
|
||||
/* Progressive disclosure: list advanced tools so AI knows they exist.
|
||||
* Added as a special tool entry with description explaining how to enable.
|
||||
* The 5 default-surface tools (search_graph, query_graph, search_code,
|
||||
* Default-surface tools (search_graph, query_graph, search_code,
|
||||
* trace_path, get_code) are NOT listed here. */
|
||||
yyjson_mut_val *hint_tool = yyjson_mut_obj(doc);
|
||||
yyjson_mut_obj_add_str(doc, hint_tool, "name", "_hidden_tools");
|
||||
yyjson_mut_obj_add_str(doc, hint_tool, "description",
|
||||
"11 advanced tools are normally hidden in streamlined mode. "
|
||||
"Advanced tools are normally hidden in streamlined mode. "
|
||||
"Advanced tools: index_repository, get_code_snippet, "
|
||||
"get_graph_schema, get_architecture, list_projects, "
|
||||
"delete_project, index_status, detect_changes, manage_adr, "
|
||||
|
||||
@@ -149,7 +149,7 @@ TEST(streamlined_mode_shows_5_default_tools) {
|
||||
* trace_path, get_code. The search_code_graph mega-tool is gone. */
|
||||
char *json = cbm_mcp_tools_list(NULL);
|
||||
ASSERT_NOT_NULL(json);
|
||||
/* The 5 default-surface tools must be present */
|
||||
/* Default-surface tools must be present by name. */
|
||||
ASSERT_NOT_NULL(strstr(json, "search_graph"));
|
||||
ASSERT_NOT_NULL(strstr(json, "query_graph"));
|
||||
ASSERT_NOT_NULL(strstr(json, "search_code"));
|
||||
|
||||
Reference in New Issue
Block a user