Skip to content

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

refactor(mcp): import mcp list tools from tinymcp

Steven Enamakele60e513fa8b5
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs
index 983e2ae9de..023f2cf1ec 100644
--- a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs
@@ -2,6 +2,7 @@ use super::*;
use crate::config::{Config, McpServerConfig};
use base64::Engine as _;
use serde_json::{json, Value};
+use tinymcp::tools::{McpListServersTool, McpListToolsTool};
use tinytools::{Tool, ToolCallOptions, ToolResult};
fn test_registry() -> Arc<McpServerRegistry> {
diff --git a/crates/openhuman-core/src/tools/impl/network/mod.rs b/crates/openhuman-core/src/tools/impl/network/mod.rs
index ae2263f405..6ce11f771c 100644
--- a/crates/openhuman-core/src/tools/impl/network/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mod.rs
@@ -24,7 +24,7 @@ pub use gitbooks::{GitbooksGetPageTool, GitbooksSearchTool};
pub use gmail_unsubscribe::GmailUnsubscribeTool;
pub use host::{http_request_tool, web_fetch_tool};
#[cfg(feature = "mcp")]
-pub use mcp::{mcp_call_tool, McpListServersTool, McpListToolsTool};
+pub use mcp::mcp_call_tool;
#[cfg(feature = "mcp")]
pub use mcp_server_tools::{configured_server_tools, ConfiguredMcpServerTool};
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index e10111a994..8ad70a2dc7 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -6,6 +6,7 @@ use crate::security::{AuditLogger, SecurityPolicy};
use std::collections::HashMap;
use std::sync::Arc;
use tinyagents_harness::tools::{CurrentTimeTool, ResolveTimeTool};
+use tinymcp::tools::{McpListServersTool, McpListToolsTool};
use tinytools::Tool;
use tinytools_std::detect_tools::DetectToolsTool;
use tinytools_std::filesystem::{