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
fix(mcp): replace debug prints with structured warnings
Steven Enamakel44baee5aba13
diff --git a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rsindex b17005cffa..10b98277c3 100644--- a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs@@ -141,13 +141,11 @@ async fn execute_tool_per_call_factory_means_no_baked_client() {// `OPENHUMAN_WORKSPACE` at a tempdir, and persist the test's// `Config` to that tempdir's `config.toml` before invoking the tool.use crate::config::TEST_ENV_LOCK;- // The scope gate reads the user's scope preference from the connector- // module's storage and fails closed when it cannot; give it the memory- // backend a booted host has, so the gate answers and dispatch is reached.- let _module = crate::integrations::composio::module_client::module_guard().await;let _env_guard = TEST_ENV_LOCK.lock().await;- // The scope-preference read is served by the connector module out of the- // host's installed storage; hold the module with that storage in place.+ // The scope gate reads the user's scope preference from the connector+ // module's storage and fails closed when it cannot; hold the module with+ // that storage in place so the gate answers and dispatch is reached. The+ // guard is not reentrant: taking it twice self-deadlocks.let _module = crate::integrations::composio::module_client::module_guard().await;let tmp = tempfile::tempdir().unwrap();diff --git a/crates/openhuman-core/src/mcp/server/tools/params.rs b/crates/openhuman-core/src/mcp/server/tools/params.rsindex 485f0e0b4c..ab6370da89 100644--- a/crates/openhuman-core/src/mcp/server/tools/params.rs+++ b/crates/openhuman-core/src/mcp/server/tools/params.rs@@ -221,12 +221,12 @@ async fn validate_tool_arguments(let config = crate::config::ops::load_current_or_init(ctx).await.map_err(|error| {- eprintln!("DBG mcp validate: {error:?}");+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;let client = crate::mcp::module_client::McpConfiguredClient::for_config(&config).map_err(|error| {- eprintln!("DBG mcp validate: {error:?}");+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;let result = client@@ -237,7 +237,7 @@ async fn validate_tool_arguments(}).await.map_err(|error| {- eprintln!("DBG mcp validate: {error:?}");+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;match result {