| 3935 | const char *instr_path; |
| 3936 | } mcp_uninstall_args_t; |
| 3937 | static void uninstall_agent_mcp_instr(mcp_uninstall_args_t paths, bool dry_run, |
| 3938 | int (*remove_fn)(const char *)) { |
| 3939 | const char *name = paths.name; |
| 3940 | const char *instr_path = paths.instr_path; |
| 3941 | if (!dry_run) { |
| 3942 | remove_fn(paths.config_path); |
| 3943 | } |
| 3944 | printf("%s: removed MCP config entry\n", name); |
| 3945 | if (instr_path) { |
| 3946 | if (!dry_run) { |
| 3947 | cbm_remove_instructions(instr_path); |
| 3948 | } |
| 3949 | printf(" removed instructions\n"); |
| 3950 | } |
| 3951 | } |
| 3952 | |
| 3953 | /* Remove CLI agent configs (Codex, Gemini, OpenCode, Antigravity, Aider). */ |
| 3954 | /* Uninstall Gemini CLI config + hooks. */ |
no test coverage detected