| 3955 | } |
| 3956 | |
| 3957 | int cbm_upsert_junie_mcp(const char *binary_path, const char *config_path) { |
| 3958 | static const char *const path[] = {"mcpServers"}; |
| 3959 | if (cbm_junie_mcp_preflight(binary_path, config_path) != CLI_OK || |
| 3960 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3961 | CBM_DEFAULT_MCP_SERVER_NAME, NULL) != CLI_OK || |
| 3962 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3963 | CBM_SCOUT_MCP_SERVER_NAME, |
| 3964 | CBM_SCOUT_PROFILE_ARGUMENT) != CLI_OK || |
| 3965 | cbm_upsert_json_named_mcp(binary_path, config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3966 | CBM_ANALYSIS_MCP_SERVER_NAME, |
| 3967 | CBM_ANALYSIS_PROFILE_ARGUMENT) != CLI_OK) { |
| 3968 | return CLI_ERR; |
| 3969 | } |
| 3970 | return CLI_OK; |
| 3971 | } |
| 3972 | |
| 3973 | #ifdef CBM_CLI_ENABLE_TEST_API |
| 3974 | int cbm_upsert_junie_mcp_with_previous_for_testing(const char *binary_path, |
no test coverage detected