Skip to content

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

fix(mcp-ui): pass optional tool arguments to the module client unchanged

oxoxDevc04daa8662cc
diff --git a/crates/openhuman-core/src/mcp/registry/tools.rs b/crates/openhuman-core/src/mcp/registry/tools.rs
index c8e12f338d..d40526c865 100644
--- a/crates/openhuman-core/src/mcp/registry/tools.rs
+++ b/crates/openhuman-core/src/mcp/registry/tools.rs
@@ -261,7 +261,7 @@ impl Tool for McpRegistryToolCallTool {
let client = crate::mcp::module_client::McpConfiguredClient::for_config(&self.config)
.map_err(|_| anyhow::anyhow!("mcp_registry_tool_call: MCP module is unavailable"))?;
let normalized: serde_json::Map<String, Value> = client
- .normalize_tool_arguments(args.get("arguments").cloned().unwrap_or(Value::Null))
+ .normalize_tool_arguments(args.get("arguments").cloned())
.await
.map_err(|_| anyhow::anyhow!("mcp_registry_tool_call: invalid tool arguments"))?;
let arguments = Value::Object(normalized);