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,store): address QA round 2
Shane McCarrona3f11bd7fa34
diff --git a/src/mcp/mcp.c b/src/mcp/mcp.cindex 97d9c3347..601c82251 100644--- a/src/mcp/mcp.c+++ b/src/mcp/mcp.c@@ -1065,7 +1065,6 @@ static char *handle_get_architecture(cbm_mcp_server_t *srv, const char *args) {return not_indexed;}-cbm_schema_info_t schema = {0};cbm_store_get_schema(store, project, &schema);@@ -1635,7 +1634,7 @@ static char *handle_get_code_snippet(cbm_mcp_server_t *srv, const char *args) {if (!store) {free(qn);free(project);- return cbm_mcp_text_result("no project loaded — run index_repository first", true);+ return cbm_mcp_text_result("{\"error\":\"no project loaded\"}", true);}char *not_indexed = verify_project_indexed(store, project);diff --git a/tests/smoke_guard.sh b/tests/smoke_guard.shindex 37cf8b4df..2fbeeb939 100755--- a/tests/smoke_guard.sh+++ b/tests/smoke_guard.sh@@ -63,7 +63,7 @@ check_handler() {# ── Step 3: Test all 5 guarded handlers ───────────────────────────check_handler "search_graph" "{\"project\":\"$FAKE_PROJECT\",\"name_pattern\":\".*\"}"-check_handler "query_graph" "{\"project\":\"$FAKE_PROJECT\",\"cypher\":\"MATCH (n) RETURN n LIMIT 1\"}"+check_handler "query_graph" "{\"project\":\"$FAKE_PROJECT\",\"query\":\"MATCH (n) RETURN n LIMIT 1\"}"check_handler "get_graph_schema" "{\"project\":\"$FAKE_PROJECT\"}"check_handler "trace_call_path" "{\"project\":\"$FAKE_PROJECT\",\"function_name\":\"main\",\"direction\":\"both\",\"depth\":1}"check_handler "get_code_snippet" "{\"project\":\"$FAKE_PROJECT\",\"qualified_name\":\"main\"}"