Skip to content

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

test(mcp): fix fake port argument handling and formatting

Steven Enamakel3f367ed534f2
diff --git a/crates/openhuman-core/src/mcp/module_client_tests.rs b/crates/openhuman-core/src/mcp/module_client_tests.rs
index afdd247bc3..a37b9011e7 100644
--- a/crates/openhuman-core/src/mcp/module_client_tests.rs
+++ b/crates/openhuman-core/src/mcp/module_client_tests.rs
@@ -82,7 +82,7 @@ impl McpModulePort for FakePort {
self.calls.lock().unwrap().push((
object_path.to_owned(),
member.to_owned(),
- args: args.clone(),
+ args.clone(),
confidential,
));
self.call_started.notify_one();
@@ -92,7 +92,7 @@ impl McpModulePort for FakePort {
self.calls.lock().unwrap().push((
object_path.to_owned(),
member.to_owned(),
- args,
+ args.clone(),
confidential,
));
self.call_started.notify_one();
diff --git a/crates/openhuman-core/src/mcp/registry/tools_tests.rs b/crates/openhuman-core/src/mcp/registry/tools_tests.rs
index 5c608077ea..49f1ef9d39 100644
--- a/crates/openhuman-core/src/mcp/registry/tools_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/tools_tests.rs
@@ -330,7 +330,8 @@ impl crate::mcp::module_client::McpModulePort for ToolCallPort {
async fn validate_server_arguments(
&self,
_request: tinymcp_bus::ValidateServerArgumentsRequest,
- ) -> Result<tinymcp_bus::ServerArgumentsValidation, crate::modules::client::ModuleCallError> {
+ ) -> Result<tinymcp_bus::ServerArgumentsValidation, crate::modules::client::ModuleCallError>
+ {
Err(crate::modules::client::ModuleCallError::IncompatibleContract)
}