| 4546 | } |
| 4547 | |
| 4548 | static int cbm_remove_grok_mcp_owned(const char *binary_path, const char *config_path) { |
| 4549 | (void)binary_path; |
| 4550 | if (!config_path || |
| 4551 | cbm_toml_remove_managed_block_owned(config_path, GROK_MCP_BEGIN, GROK_MCP_END, |
| 4552 | GROK_CMM_SECTION "\n") != 0) { |
| 4553 | return CLI_ERR; |
| 4554 | } |
| 4555 | return cbm_remove_grok_legacy_mcp(config_path) >= 0 ? CLI_OK : CLI_ERR; |
| 4556 | } |
| 4557 | |
| 4558 | /* ── Claude Code pre-tool hooks ───────────────────────────────── */ |
| 4559 |
nothing calls this directly
no test coverage detected