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

Method install

src/agents/kiro.rs:159–190  ·  view source on GitHub ↗
(&self, ctx: &InstallContext)

Source from the content-addressed store, hash-verified

157 }
158
159 fn install(&self, ctx: &InstallContext) -> Result<()> {
160 std::fs::create_dir_all(kiro_home(&ctx.home)).ok();
161
162 let mcp_path = mcp_config_path(&ctx.home);
163 install_mcp_server(&mcp_path, &ctx.tracedecay_bin)?;
164
165 let steering = steering_path(&ctx.home);
166 install_steering_rules(&steering)?;
167
168 let agent_path = managed_agent_path(&ctx.home);
169 let skill_index_path = managed_skill_index_path(&ctx.home);
170 let owns_agent = install_managed_agent(
171 &agent_path,
172 &ctx.tracedecay_bin,
173 &steering,
174 &ctx.home,
175 Some(&skill_index_path),
176 )?;
177
178 let cli_path = cli_config_path(&ctx.home);
179 install_default_agent(&cli_path, owns_agent)?;
180
181 eprintln!();
182 eprintln!("Setup complete. Next steps:");
183 eprintln!(" 1. cd into your project and run: tracedecay init");
184 eprintln!(" 2. Start a new Kiro session");
185 eprintln!(" tracedecay tools are now available through Kiro MCP");
186 eprintln!(
187 " the tracedecay Kiro agent includes hooks for delegation guardrails and sync"
188 );
189 Ok(())
190 }
191
192 fn supports_local_install(&self) -> bool {
193 true

Callers

nothing calls this directly

Calls 10

kiro_homeFunction · 0.85
steering_pathFunction · 0.85
install_steering_rulesFunction · 0.85
managed_agent_pathFunction · 0.85
managed_skill_index_pathFunction · 0.85
install_managed_agentFunction · 0.85
install_default_agentFunction · 0.85
mcp_config_pathFunction · 0.70
install_mcp_serverFunction · 0.70
cli_config_pathFunction · 0.70

Tested by

no test coverage detected