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(protocol): normalize tool call arguments
Steven Enamakeld6e8adc24de8
diff --git a/crates/openhuman-core/src/mcp/server/protocol.rs b/crates/openhuman-core/src/mcp/server/protocol.rsindex c2f1ee00e6..5ea6c30235 100644--- a/crates/openhuman-core/src/mcp/server/protocol.rs+++ b/crates/openhuman-core/src/mcp/server/protocol.rs@@ -297,11 +297,11 @@ fn parse_tool_call_params(params: Value) -> Result<(String, Value), String> {.map(str::trim).filter(|name| !name.is_empty()).ok_or_else(|| "tools/call params.name must be a non-empty string".to_string())?;- let arguments = object- .get("arguments")- .cloned()- .unwrap_or_else(|| Value::Object(Map::new()));- Ok((name.to_string(), arguments))+ // Absent/null → `{}`, and an object JSON-encoded into a string is+ // decoded; anything else is refused naming what arrived.+ let arguments = tinymcp_bus::normalize_tool_arguments(object.get("arguments").cloned())+ .map_err(|error| format!("tools/call params.arguments: {error}"))?;+ Ok((name.to_string(), Value::Object(arguments)))}fn success_response(id: Value, result: Value) -> Value {