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(mcp): add debug logging for proxy config on test failure
Steven Enamakel522a409e9c37
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rsindex b2f8bc1f59..bb348103fd 100644--- a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs@@ -138,7 +138,9 @@ async fn a_call_reaches_the_server_and_its_output_is_scrubbed() {.iter().find(|tool| tool.name() == name("readGoals")).unwrap();- let result = read.execute(json!({ "list": "work" })).await.unwrap();+ let result = read.execute(json!({ "list": "work" })).await;+ if result.is_err() { eprintln!("DBGPROXY {:?} env={:?}", crate::config::runtime_proxy_config(), std::env::vars().filter(|(k,_)| k.to_lowercase().contains("proxy")).collect::<Vec<_>>()); }+ let result = result.unwrap();assert!(!result.is_error, "{}", result.text());assert_eq!(result.text(), "goals for [redacted]");}@@ -155,7 +157,9 @@ async fn a_remote_call_error_is_scrubbed() {.find(|tool| tool.name() == name("readGoals")).unwrap();- let result = read.execute(json!({ "name": "fail" })).await.unwrap();+ let result = read.execute(json!({ "name": "fail" })).await;+ if result.is_err() { eprintln!("DBGPROXY {:?} env={:?}", crate::config::runtime_proxy_config(), std::env::vars().filter(|(k,_)| k.to_lowercase().contains("proxy")).collect::<Vec<_>>()); }+ let result = result.unwrap();assert!(result.is_error);let text = result.text();assert!(text.contains("[redacted]"), "{text}");