Skip to content

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.

feat: add support for MCP ping (#354)

Christof Meerwald9d6e28bccf0e
diff --git a/src/mcp/mcp.c b/src/mcp/mcp.c
index 1781e2027..59fe86e94 100644
--- a/src/mcp/mcp.c
+++ b/src/mcp/mcp.c
@@ -4298,6 +4298,8 @@ char *cbm_mcp_server_handle(cbm_mcp_server_t *srv, const char *line) {
start_update_check(srv);
detect_session(srv);
maybe_auto_index(srv);
+ } else if (strcmp(req.method, "ping") == 0) {
+ result_json = heap_strdup("{}");
} else if (strcmp(req.method, "tools/list") == 0) {
result_json = cbm_mcp_tools_list();
} else if (strcmp(req.method, "tools/call") == 0) {