MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / uninstall_agent_mcp_instr

Function uninstall_agent_mcp_instr

src/cli/cli.c:3937–3951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3935 const char *instr_path;
3936} mcp_uninstall_args_t;
3937static 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. */

Callers 2

uninstall_cli_agentsFunction · 0.85
uninstall_editor_agentsFunction · 0.85

Calls 1

cbm_remove_instructionsFunction · 0.85

Tested by

no test coverage detected