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.

chore(mcp): apply clang-format to coverage fix

SunneeYanga8283e930d85
diff --git a/src/mcp/mcp.c b/src/mcp/mcp.c
index 2f5865067..622a72f8b 100644
--- a/src/mcp/mcp.c
+++ b/src/mcp/mcp.c
@@ -4242,10 +4242,9 @@ static const char *coverage_status(const cbm_coverage_row_t *rows, int count,
}
}
}
- bool recording_complete =
- recording_status && strcmp(recording_status, "complete") == 0;
- bool truncated_exact_path_verified = exact_path_verified && recording_status &&
- strcmp(recording_status, "truncated") == 0;
+ bool recording_complete = recording_status && strcmp(recording_status, "complete") == 0;
+ bool truncated_exact_path_verified =
+ exact_path_verified && recording_status && strcmp(recording_status, "truncated") == 0;
if (!generation_matches || (!recording_complete && !truncated_exact_path_verified)) {
return "coverage_unavailable";
}
@@ -4363,12 +4362,12 @@ static char *handle_check_index_coverage(cbm_mcp_server_t *srv, const char *args
bool outside = false;
const char *freshness = coverage_path_freshness(
store, project, have_project ? proj.root_path : NULL, rel, &outside);
- bool exact_path_verified = have_meta && meta.hash_records_complete &&
- strcmp(freshness, "metadata_match") == 0;
- const char *status = outside ? "outside_project"
- : coverage_status(rows, row_count, rel, recording_status,
- generation_matches, lookup_ok,
- exact_path_verified);
+ bool exact_path_verified =
+ have_meta && meta.hash_records_complete && strcmp(freshness, "metadata_match") == 0;
+ const char *status =
+ outside ? "outside_project"
+ : coverage_status(rows, row_count, rel, recording_status,
+ generation_matches, lookup_ok, exact_path_verified);
yyjson_mut_obj_add_strcpy(doc, item, "status", status);
yyjson_mut_obj_add_strcpy(doc, item, "freshness", freshness);
yyjson_mut_obj_add_strcpy(doc, item, "recommended_action",