| 3920 | } |
| 3921 | |
| 3922 | int cbm_remove_codex_mcp(const char *config_path) { |
| 3923 | /* #2228: only our table goes; foreign tables found between the markers |
| 3924 | * (Codex Desktop appends below a block that ends the file) stay. */ |
| 3925 | if (!config_path || |
| 3926 | cbm_toml_remove_managed_block_owned(config_path, CODEX_MCP_BEGIN, CODEX_MCP_END, |
| 3927 | CODEX_CMM_SECTION "\n") != 0) { |
| 3928 | return CLI_ERR; |
| 3929 | } |
| 3930 | return cbm_remove_codex_legacy_mcp(config_path) >= 0 ? CLI_OK : CLI_ERR; |
| 3931 | } |
| 3932 | |
| 3933 | static int cbm_remove_codex_mcp_owned(const char *binary_path, const char *config_path) { |
| 3934 | (void)binary_path; |
no test coverage detected