| 3983 | #endif |
| 3984 | |
| 3985 | int cbm_remove_junie_mcp(const char *config_path) { |
| 3986 | static const char *const path[] = {"mcpServers"}; |
| 3987 | int result = CLI_OK; |
| 3988 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3989 | CBM_DEFAULT_MCP_SERVER_NAME, NULL, NULL) != CLI_OK) { |
| 3990 | result = CLI_ERR; |
| 3991 | } |
| 3992 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3993 | CBM_SCOUT_MCP_SERVER_NAME, CBM_SCOUT_PROFILE_ARGUMENT, |
| 3994 | NULL) != CLI_OK) { |
| 3995 | result = CLI_ERR; |
| 3996 | } |
| 3997 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 3998 | CBM_ANALYSIS_MCP_SERVER_NAME, CBM_ANALYSIS_PROFILE_ARGUMENT, |
| 3999 | NULL) != CLI_OK) { |
| 4000 | result = CLI_ERR; |
| 4001 | } |
| 4002 | return result; |
| 4003 | } |
| 4004 | |
| 4005 | int cbm_remove_junie_mcp_owned(const char *binary_path, const char *config_path) { |
| 4006 | static const char *const path[] = {"mcpServers"}; |
nothing calls this directly
no test coverage detected