Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(mcp): replace debug prints with structured warnings

Steven Enamakelab4ee04ab83f
diff --git a/crates/openhuman-core/src/mcp/server/tools/params.rs b/crates/openhuman-core/src/mcp/server/tools/params.rs
index 571385cd07..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 site0 {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 site1 {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 site2 {error:?}");
+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");
ToolCallError::Internal("MCP argument validation is unavailable".into())
})?;
match result {