| 4448 | } |
| 4449 | |
| 4450 | int cbm_remove_junie_mcp_owned(const char *binary_path, const char *config_path) { |
| 4451 | static const char *const path[] = {"mcpServers"}; |
| 4452 | int result = CLI_OK; |
| 4453 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4454 | CBM_DEFAULT_MCP_SERVER_NAME, NULL, binary_path) != CLI_OK) { |
| 4455 | result = CLI_ERR; |
| 4456 | } |
| 4457 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4458 | CBM_SCOUT_MCP_SERVER_NAME, CBM_SCOUT_PROFILE_ARGUMENT, |
| 4459 | binary_path) != CLI_OK) { |
| 4460 | result = CLI_ERR; |
| 4461 | } |
| 4462 | if (cbm_remove_json_named_mcp(config_path, path, 1U, CBM_JSON_MCP_STANDARD, |
| 4463 | CBM_ANALYSIS_MCP_SERVER_NAME, CBM_ANALYSIS_PROFILE_ARGUMENT, |
| 4464 | binary_path) != CLI_OK) { |
| 4465 | result = CLI_ERR; |
| 4466 | } |
| 4467 | return result; |
| 4468 | } |
| 4469 | |
| 4470 | /* ── Mistral Vibe MCP config (TOML array tables) ─────────────── */ |
| 4471 |
no test coverage detected