| 3757 | #endif |
| 3758 | |
| 3759 | int cbm_remove_junie_mcp(const char *config_path) { |
| 3760 | static const char *const path[] = {"mcpServers"}; |
| 3761 | int result = CLI_OK; |
| 3762 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3763 | CBM_DEFAULT_MCP_SERVER_NAME, NULL, NULL) != CLI_OK) { |
| 3764 | result = CLI_ERR; |
| 3765 | } |
| 3766 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3767 | CBM_SCOUT_MCP_SERVER_NAME, CBM_SCOUT_PROFILE_ARGUMENT, |
| 3768 | NULL) != CLI_OK) { |
| 3769 | result = CLI_ERR; |
| 3770 | } |
| 3771 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3772 | CBM_ANALYSIS_MCP_SERVER_NAME, CBM_ANALYSIS_PROFILE_ARGUMENT, |
| 3773 | NULL) != CLI_OK) { |
| 3774 | result = CLI_ERR; |
| 3775 | } |
| 3776 | return result; |
| 3777 | } |
| 3778 | |
| 3779 | int cbm_remove_junie_mcp_owned(const char *binary_path, const char *config_path) { |
| 3780 | static const char *const path[] = {"mcpServers"}; |
nothing calls this directly
no test coverage detected