Skip to content

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

chore(mcp): add debug eprintln to argument validation errors

Steven Enamakelf3f15f3e7cdd
diff --git a/crates/openhuman-core/src/mcp/server/tools/params.rs b/crates/openhuman-core/src/mcp/server/tools/params.rs
index ab6370da89..f2d4176d45 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| {
- log::warn!("[mcp][params] argument validation unavailable: {error:?}");
+ log::warn!("[mcp][params] argument validation unavailable: {error:?}"); eprintln!("DBG {error:?}");
ToolCallError::Internal("MCP argument validation is unavailable".into())
})?;
let client = crate::mcp::module_client::McpConfiguredClient::for_config(&config)
.map_err(|error| {
- log::warn!("[mcp][params] argument validation unavailable: {error:?}");
+ log::warn!("[mcp][params] argument validation unavailable: {error:?}"); eprintln!("DBG {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| {
- log::warn!("[mcp][params] argument validation unavailable: {error:?}");
+ log::warn!("[mcp][params] argument validation unavailable: {error:?}"); eprintln!("DBG {error:?}");
ToolCallError::Internal("MCP argument validation is unavailable".into())
})?;
match result {