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