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

Method fallback

src/tool_command.rs:205–217  ·  view source on GitHub ↗
(&self, tool_name: &str, tool_args: Value)

Source from the content-addressed store, hash-verified

203 }
204
205 async fn fallback(&self, tool_name: &str, tool_args: Value) -> Result<Option<Value>> {
206 if !self.allow_profile_scoped_fallback {
207 let handshake = self.handshake()?;
208 if handshake.project_path.is_none() {
209 return Ok(None);
210 }
211 return Ok(Some(
212 call_in_process_tool(&handshake, tool_name, tool_args).await?,
213 ));
214 }
215 let result = handle_profile_scoped_lcm_tool_call(tool_name, tool_args).await?;
216 Ok(Some(result.value))
217 }
218}
219
220async fn call_in_process_tool(

Callers 1

dispatch_daemon_toolFunction · 0.80

Calls 3

call_in_process_toolFunction · 0.85
handshakeMethod · 0.80

Tested by

no test coverage detected