Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(mcp): drop the tool title accessor with the title field
Martin Vogelf6afd6138e60
diff --git a/src/cli/client_adapter.c b/src/cli/client_adapter.cindex ee8366e6e..8d4ba4af4 100644--- a/src/cli/client_adapter.c+++ b/src/cli/client_adapter.c@@ -213,14 +213,14 @@ char *cbm_client_adapter_pi(const char *binary_path) {if (!name || !name[0]) {continue;}- const char *title = cbm_mcp_tool_title(name);const char *description = cbm_mcp_tool_description(name);const char *schema = cbm_mcp_tool_input_schema(name);sb_append(&sb, " pi.registerTool({\n");sb_append(&sb, " name: ");sb_append_js_string(&sb, name);sb_append(&sb, ",\n label: ");- sb_append_js_string(&sb, title ? title : name);+ /* Tools carry no separate title: the name is the MCP display fallback. */+ sb_append_js_string(&sb, name);sb_append(&sb, ",\n description: ");sb_append_js_string(&sb, description ? description : "");sb_append(&sb, ",\n parameters: ");diff --git a/src/mcp/mcp.c b/src/mcp/mcp.cindex 218c10213..6a9b356d1 100644--- a/src/mcp/mcp.c+++ b/src/mcp/mcp.c@@ -1010,17 +1010,6 @@ const char *cbm_mcp_tool_name(int index) {return TOOLS[index].name;}-const char *cbm_mcp_tool_title(const char *tool_name) {- if (!tool_name) {- return NULL;- }- for (int i = 0; i < TOOL_COUNT; i++) {- if (strcmp(TOOLS[i].name, tool_name) == 0) {- return TOOLS[i].title;- }- }- return NULL;-}const char *cbm_mcp_tool_description(const char *tool_name) {if (!tool_name) {diff --git a/src/mcp/mcp.h b/src/mcp/mcp.hindex 38312caaf..09befb780 100644--- a/src/mcp/mcp.h+++ b/src/mcp/mcp.h@@ -75,7 +75,6 @@ const char *cbm_mcp_tool_name(int index);/* Tool metadata by name (static; do not free; NULL when unknown). Used by the* generated client adapters so they can emit descriptions and parameter* schemas without drifting from tools/list. */-const char *cbm_mcp_tool_title(const char *tool_name);const char *cbm_mcp_tool_description(const char *tool_name);/* Render the top-level --help "Tools:" block from the registry so the help