| 4428 | #endif |
| 4429 | |
| 4430 | int cbm_remove_junie_mcp(const char *config_path) { |
| 4431 | static const char *const path[] = {"mcpServers"}; |
| 4432 | int result = CLI_OK; |
| 4433 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4434 | CBM_DEFAULT_MCP_SERVER_NAME, NULL, NULL) != CLI_OK) { |
| 4435 | result = CLI_ERR; |
| 4436 | } |
| 4437 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4438 | CBM_SCOUT_MCP_SERVER_NAME, CBM_SCOUT_PROFILE_ARGUMENT, |
| 4439 | NULL) != CLI_OK) { |
| 4440 | result = CLI_ERR; |
| 4441 | } |
| 4442 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4443 | CBM_ANALYSIS_MCP_SERVER_NAME, CBM_ANALYSIS_PROFILE_ARGUMENT, |
| 4444 | NULL) != CLI_OK) { |
| 4445 | result = CLI_ERR; |
| 4446 | } |
| 4447 | return result; |
| 4448 | } |
| 4449 | |
| 4450 | int cbm_remove_junie_mcp_owned(const char *binary_path, const char *config_path) { |
| 4451 | static const char *const path[] = {"mcpServers"}; |
nothing calls this directly
no test coverage detected