| 4400 | } |
| 4401 | |
| 4402 | int cbm_upsert_junie_mcp(const char *binary_path, const char *config_path) { |
| 4403 | static const char *const path[] = {"mcpServers"}; |
| 4404 | if (cbm_junie_mcp_preflight(binary_path, config_path) != CLI_OK || |
| 4405 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4406 | CBM_DEFAULT_MCP_SERVER_NAME, NULL) != CLI_OK || |
| 4407 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4408 | CBM_SCOUT_MCP_SERVER_NAME, |
| 4409 | CBM_SCOUT_PROFILE_ARGUMENT) != CLI_OK || |
| 4410 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4411 | CBM_ANALYSIS_MCP_SERVER_NAME, |
| 4412 | CBM_ANALYSIS_PROFILE_ARGUMENT) != CLI_OK) { |
| 4413 | return CLI_ERR; |
| 4414 | } |
| 4415 | return CLI_OK; |
| 4416 | } |
| 4417 | |
| 4418 | #ifdef CBM_CLI_ENABLE_TEST_API |
| 4419 | int cbm_upsert_junie_mcp_with_previous_for_testing(const char *binary_path, |
no test coverage detected