| 3729 | } |
| 3730 | |
| 3731 | int cbm_upsert_junie_mcp(const char *binary_path, const char *config_path) { |
| 3732 | static const char *const path[] = {"mcpServers"}; |
| 3733 | if (cbm_junie_mcp_preflight(binary_path, config_path) != CLI_OK || |
| 3734 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3735 | CBM_DEFAULT_MCP_SERVER_NAME, NULL) != CLI_OK || |
| 3736 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3737 | CBM_SCOUT_MCP_SERVER_NAME, |
| 3738 | CBM_SCOUT_PROFILE_ARGUMENT) != CLI_OK || |
| 3739 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3740 | CBM_ANALYSIS_MCP_SERVER_NAME, |
| 3741 | CBM_ANALYSIS_PROFILE_ARGUMENT) != CLI_OK) { |
| 3742 | return CLI_ERR; |
| 3743 | } |
| 3744 | return CLI_OK; |
| 3745 | } |
| 3746 | |
| 3747 | #ifdef CBM_CLI_ENABLE_TEST_API |
| 3748 | int cbm_upsert_junie_mcp_with_previous_for_testing(const char *binary_path, |
no test coverage detected