MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / uninstall

Method uninstall

src/agents/opencode.rs:69–85  ·  view source on GitHub ↗
(&self, ctx: &InstallContext)

Source from the content-addressed store, hash-verified

67 }
68
69 fn uninstall(&self, ctx: &InstallContext) -> Result<()> {
70 let config_path = opencode_config_path(&ctx.home);
71 uninstall_mcp_server(&config_path);
72
73 let global_prompt = opencode_prompt_path(&ctx.home);
74 super::remove_managed_skill_prompt_index(
75 &ctx.home,
76 &global_prompt,
77 crate::automation::skill_targets::SkillInstallTarget::OpenCode,
78 )?;
79 uninstall_prompt_rules(&global_prompt);
80
81 eprintln!();
82 eprintln!("Uninstall complete. Tracedecay has been removed from OpenCode.");
83 eprintln!("Start a new OpenCode session for changes to take effect.");
84 Ok(())
85 }
86
87 fn healthcheck(&self, dc: &mut DoctorCounters, ctx: &HealthcheckContext) {
88 eprintln!("\n\x1b[1mOpenCode integration\x1b[0m");

Callers

nothing calls this directly

Calls 5

opencode_config_pathFunction · 0.70
uninstall_mcp_serverFunction · 0.70
opencode_prompt_pathFunction · 0.70
uninstall_prompt_rulesFunction · 0.70

Tested by

no test coverage detected