The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(agent-harness): include advertised tools in mcp lookup panic
Steven Enamakeld97d6fd6897e
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 8b2a5c213d..ab05f697cc 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -412,7 +412,21 @@ async fn scripted_chat_completions(continue;}let name = scripted_discovered_mcp_tool_name(&body).unwrap_or_else(|| {- panic!("the next model request did not advertise the searched MCP action")+ let tools = body+ .pointer("/tools")+ .and_then(Value::as_array)+ .into_iter()+ .flatten()+ .map(|tool| {+ let function = &tool["function"];+ json!({+ "name": function["name"],+ "description": function["description"],+ "parameters": function["parameters"]+ })+ })+ .collect::<Vec<_>>();+ panic!("the next model request did not advertise the searched MCP action; tools: {tools:#?}")});call["name"] = json!(name);call["id"] = json!(format!("call_{name}"));