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

Function call

tests/mcp_suite/git_correlation_test.rs:119–128  ·  view source on GitHub ↗
(cg: &TraceDecay, tool: &str, mut args: Value)

Source from the content-addressed store, hash-verified

117}
118
119async fn call(cg: &TraceDecay, tool: &str, mut args: Value) -> Value {
120 if let Some(obj) = args.as_object_mut() {
121 obj.entry("format".to_string())
122 .or_insert_with(|| json!("json"));
123 }
124 let result = tracedecay::mcp::handle_tool_call(cg, tool, args, None, None)
125 .await
126 .unwrap_or_else(|e| panic!("{tool} should succeed: {e}"));
127 extract_json(&result)
128}
129
130fn session_ids(payload: &Value) -> Vec<String> {
131 payload["results"]

Calls 3

entryMethod · 0.80
handle_tool_callFunction · 0.70
extract_jsonFunction · 0.70

Tested by

no test coverage detected