| 3840 | #endif |
| 3841 | |
| 3842 | int cbm_remove_junie_mcp(const char *config_path) { |
| 3843 | static const char *const path[] = {"mcpServers"}; |
| 3844 | int result = CLI_OK; |
| 3845 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3846 | CBM_DEFAULT_MCP_SERVER_NAME, NULL, NULL) != CLI_OK) { |
| 3847 | result = CLI_ERR; |
| 3848 | } |
| 3849 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3850 | CBM_SCOUT_MCP_SERVER_NAME, CBM_SCOUT_PROFILE_ARGUMENT, |
| 3851 | NULL) != CLI_OK) { |
| 3852 | result = CLI_ERR; |
| 3853 | } |
| 3854 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3855 | CBM_ANALYSIS_MCP_SERVER_NAME, CBM_ANALYSIS_PROFILE_ARGUMENT, |
| 3856 | NULL) != CLI_OK) { |
| 3857 | result = CLI_ERR; |
| 3858 | } |
| 3859 | return result; |
| 3860 | } |
| 3861 | |
| 3862 | int cbm_remove_junie_mcp_owned(const char *binary_path, const char *config_path) { |
| 3863 | static const char *const path[] = {"mcpServers"}; |
nothing calls this directly
no test coverage detected