Skip to content

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

fix(network): clone tool name in mcp target test and drop duplicate re-export

Steven Enamakeld83b4582ccb0
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_target_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_target_tests.rs
index 1fecc9748f..c581140d26 100644
--- a/crates/openhuman-core/src/tools/impl/network/mcp_target_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mcp_target_tests.rs
@@ -68,7 +68,7 @@ impl McpModulePort for PreparePort {
name: format!("owner:{}:{}", source.server_id, tool.name),
legacy_name: format!("legacy:{}:{}", source.server_id, tool.name),
server_id: source.server_id.clone(),
- remote_name: tool.name,
+ remote_name: tool.name.clone(),
family: source.family.clone(),
description: String::new(),
parameters: Value::Null,
diff --git a/crates/openhuman-core/src/tools/impl/network/mod.rs b/crates/openhuman-core/src/tools/impl/network/mod.rs
index 442a128061..45f84ef78e 100644
--- a/crates/openhuman-core/src/tools/impl/network/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mod.rs
@@ -28,8 +28,6 @@ pub use host::{http_request_tool, web_fetch_tool};
pub use mcp::{mcp_call_tool, McpListServersTool, McpListToolsTool};
#[cfg(feature = "mcp")]
pub use mcp_server_tools::configured_server_tools_from_presentations;
-#[cfg(all(feature = "mcp", test))]
-pub use mcp_server_tools::configured_server_tools_from_presentations;
/// Shared test helper for the network tools' local-only enforcement tests
/// (privacy epic S7, #4441). Returns a thread-scoped `LocalOnly` privacy