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.

Merge branch 'main' into fix/mcp-frontend-recovery

Pxx50018b2f8670c64
diff --cc src/main.c
index 5547d79b1,defbef34e..43368682d
--- a/src/main.c
+++ b/src/main.c
@@@ -3138,22 -3242,10 +3258,21 @@@ int main(int argc, char **argv)
(void)main_version_cohort_close(&client_cohort_lease, &client_cohort_manager);
return EXIT_FAILURE;
}
- #endif
setup_signal_handlers();
- int result = cbm_daemon_frontend_mcp_run(g_daemon_client, client_cohort_manager, stdin, stdout);
+ cbm_daemon_frontend_session_config_t frontend_session = {
+ .bootstrap = bootstrap_config,
+ .session_root = mcp_session_root,
+ .allowed_root = mcp_allowed_root_ptr,
+ .tool_profile = tool_profile,
+ .ui_update_mask = mcp_ui_update_mask,
+ .ui_enabled = mcp_ui_enabled,
+ .ui_port = mcp_ui_port,
+ };
+ int result = cbm_daemon_frontend_mcp_run(g_daemon_client, client_cohort_manager,
+ &frontend_session, stdin, stdout);
g_daemon_client = NULL; /* frontend consumed the handle */
+ cbm_daemon_ipc_endpoint_free(endpoint);
bool client_cohort_cleanup =
main_version_cohort_close(&client_cohort_lease, &client_cohort_manager);
atomic_store(&g_shutdown, 1);