| 3791 | } |
| 3792 | |
| 3793 | int cbm_upsert_junie_mcp(const char *binary_path, const char *config_path) { |
| 3794 | static const char *const path[] = {"mcpServers"}; |
| 3795 | if (cbm_junie_mcp_preflight(binary_path, config_path) != CLI_OK || |
| 3796 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3797 | CBM_DEFAULT_MCP_SERVER_NAME, NULL) != CLI_OK || |
| 3798 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3799 | CBM_SCOUT_MCP_SERVER_NAME, |
| 3800 | CBM_SCOUT_PROFILE_ARGUMENT) != CLI_OK || |
| 3801 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3802 | CBM_ANALYSIS_MCP_SERVER_NAME, |
| 3803 | CBM_ANALYSIS_PROFILE_ARGUMENT) != CLI_OK) { |
| 3804 | return CLI_ERR; |
| 3805 | } |
| 3806 | return CLI_OK; |
| 3807 | } |
| 3808 | |
| 3809 | #ifdef CBM_CLI_ENABLE_TEST_API |
| 3810 | int cbm_upsert_junie_mcp_with_previous_for_testing(const char *binary_path, |
no test coverage detected