Skip to content

Commit 1794d9b

Browse files
committed
style(mcp): clang-format the rebased analysis_tools block
The rebase resolution hand-aligned the analysis_tools array in both src/mcp/mcp.c and tests/test_mcp.c after adding get_file_outline beside compare_graphs, and the column widths did not match what clang-format produces. That was the only red leg. Whitespace only: with all whitespace stripped, both files hash identically before and after (mcp.c d9b9bf785ac9, test_mcp.c 5a7fbf137492), so no rebuild was required to re-validate the suites. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent d122124 commit 1794d9b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎src/mcp/mcp.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,9 +825,9 @@ static void mcp_add_tool_def(yyjson_mut_doc *doc, yyjson_mut_val *tools, int i)
825825

826826
static bool mcp_tool_allowed(cbm_mcp_tool_profile_t profile, const char *name) {
827827
static const char *const analysis_tools[] = {
828-
"search_graph", "query_graph", "trace_path", "get_code_snippet",
829-
"get_file_outline", "get_graph_schema", "compare_graphs", "get_architecture",
830-
"search_code", "list_projects", "index_status", "check_index_coverage",
828+
"search_graph", "query_graph", "trace_path", "get_code_snippet",
829+
"get_file_outline", "get_graph_schema", "compare_graphs", "get_architecture",
830+
"search_code", "list_projects", "index_status", "check_index_coverage",
831831
"detect_changes",
832832
};
833833
static const char *const scout_tools[] = {

‎tests/test_mcp.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,9 +1339,9 @@ static int issue403_initialize_count_calls(const char *session_root, bool approv
13391339
cbm_setenv("CBM_CACHE_DIR", cache, 1);
13401340

13411341
char err[1024];
1342-
bool approved = !approve_sensitive ||
1343-
cbm_workspace_grant_add(cache, cbm_workspace_home_dir(), session_root, true,
1344-
err, sizeof(err));
1342+
bool approved =
1343+
!approve_sensitive || cbm_workspace_grant_add(cache, cbm_workspace_home_dir(), session_root,
1344+
true, err, sizeof(err));
13451345
cbm_config_t *cfg = approved ? cbm_config_open(cache) : NULL;
13461346
cbm_mcp_server_t *srv = cfg ? cbm_mcp_server_new(NULL) : NULL;
13471347
int calls = -2;
@@ -1371,8 +1371,8 @@ static int issue403_initialize_count_calls(const char *session_root, bool approv
13711371
}
13721372

13731373
TEST(mcp_issue403_sensitive_root_stops_before_discovery_count) {
1374-
int sensitive = issue403_initialize_count_calls(
1375-
"C:/Users/dev/AppData/Local/Programs/Antigravity", false);
1374+
int sensitive =
1375+
issue403_initialize_count_calls("C:/Users/dev/AppData/Local/Programs/Antigravity", false);
13761376
int ordinary = issue403_initialize_count_calls("C:/Users/dev/projects/app", false);
13771377
ASSERT_EQ(sensitive, 0);
13781378
ASSERT_EQ(ordinary, 1);
@@ -1490,9 +1490,9 @@ TEST(server_handle_analysis_profile_filters_and_rejects_mutators) {
14901490
resp = cbm_mcp_server_handle(srv, "{\"jsonrpc\":\"2.0\",\"id\":220,\"method\":\"tools/list\"}");
14911491
ASSERT_NOT_NULL(resp);
14921492
static const char *const analysis_tools[] = {
1493-
"search_graph", "query_graph", "trace_path", "get_code_snippet",
1494-
"get_file_outline", "get_graph_schema", "compare_graphs", "get_architecture",
1495-
"search_code", "list_projects", "index_status", "check_index_coverage",
1493+
"search_graph", "query_graph", "trace_path", "get_code_snippet",
1494+
"get_file_outline", "get_graph_schema", "compare_graphs", "get_architecture",
1495+
"search_code", "list_projects", "index_status", "check_index_coverage",
14961496
"detect_changes",
14971497
};
14981498
ASSERT_EQ(mcp_response_tool_count(resp), sizeof(analysis_tools) / sizeof(analysis_tools[0]));

0 commit comments

Comments
 (0)