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

Method install

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

Source from the content-addressed store, hash-verified

32 }
33
34 fn install(&self, ctx: &InstallContext) -> Result<()> {
35 let config_path = opencode_config_path(&ctx.home);
36 install_mcp_server(&config_path, &ctx.tracedecay_bin)?;
37
38 let global_prompt = opencode_prompt_path(&ctx.home);
39 install_prompt_rules(&global_prompt)?;
40 super::install_managed_skill_prompt_index(
41 &ctx.home,
42 &global_prompt,
43 crate::automation::skill_targets::SkillInstallTarget::OpenCode,
44 )?;
45
46 eprintln!();
47 eprintln!("Setup complete. Next steps:");
48 eprintln!(" 1. cd into your project and run: tracedecay init");
49 eprintln!(" 2. Start a new OpenCode session — tracedecay tools are now available");
50 eprintln!(" 3. OpenCode will prompt for approval on first use of each tool");
51 Ok(())
52 }
53
54 fn supports_local_install(&self) -> bool {
55 true

Callers

nothing calls this directly

Calls 5

opencode_config_pathFunction · 0.70
install_mcp_serverFunction · 0.70
opencode_prompt_pathFunction · 0.70
install_prompt_rulesFunction · 0.70

Tested by

no test coverage detected