Skip to content

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

refactor(tools): remove MCP install and setup-agent tools

Steven Enamakel2beebd5c3d3d
diff --git a/crates/openhuman-core/src/tools/impl/network/mod.rs b/crates/openhuman-core/src/tools/impl/network/mod.rs
index cc7d3b37dc..7d96ab001d 100644
--- a/crates/openhuman-core/src/tools/impl/network/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mod.rs
@@ -14,8 +14,6 @@ mod http_request;
// facade.)
#[cfg(feature = "mcp")]
mod mcp;
-#[cfg(feature = "mcp")]
-mod mcp_setup;
mod url_guard;
mod web_fetch;
@@ -25,11 +23,6 @@ pub use gmail_unsubscribe::GmailUnsubscribeTool;
pub use http_request::HttpRequestTool;
#[cfg(feature = "mcp")]
pub use mcp::{McpCallTool, McpListServersTool, McpListToolsTool};
-#[cfg(feature = "mcp")]
-pub use mcp_setup::{
- McpSetupGetTool, McpSetupInstallAndConnectTool, McpSetupRequestSecretTool, McpSetupSearchTool,
- McpSetupTestConnectionTool,
-};
/// The SSRF guard the network tools apply, so a host outside this crate can
/// hold user-supplied URLs to the same rule rather than writing a second one.
pub use url_guard::{
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index cb7222f624..029d6980a0 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -605,8 +605,9 @@ pub fn all_tools_with_runtime(
Box::new(OAuthConnectUrlTool::new(config.clone())),
Box::new(OAuthListTool::new(config.clone())),
// MCP registry and workspace persona. Observe/connect/call tools
- // default-ON; MCP install/uninstall (mcp_manage), and persona/workspace writers
- // (workspace_manage) ship default-OFF via `tools::user_filter`.
+ // default-ON; MCP uninstall (mcp_manage), and persona/workspace writers
+ // (workspace_manage) ship default-OFF via `tools::user_filter`. There
+ // is no install tool: servers are declared by the user in mcp.json.
//
// MCP registry (dynamic, user-installed servers) — compiled out with
// the `mcp` feature. Per-element attrs inside the `vec![]` mirror the
@@ -628,10 +629,6 @@ pub fn all_tools_with_runtime(
#[cfg(feature = "mcp")]
Box::new(McpRegistryToolCallTool::new(config.clone())),
#[cfg(feature = "mcp")]
- Box::new(McpRegistryConfigAssistTool::new(config.clone())),
- #[cfg(feature = "mcp")]
- Box::new(McpRegistryInstallTool::new(config.clone())),
- #[cfg(feature = "mcp")]
Box::new(McpRegistryUninstallTool::new(config.clone())),
Box::new(WorkspaceReadPersonaTool::new(config.clone())),
Box::new(WorkspaceUpdatePersonaTool::new(config.clone())),
@@ -791,22 +788,6 @@ pub fn all_tools_with_runtime(
}
}
- // MCP setup-agent tool surface (search/get/request_secret/test/install).
- // Registered unconditionally — the `mcp_setup` sub-agent filters to just
- // these via its `[tools] named = [...]` allowlist, and the host agent's
- // own tool list is wide enough that the extra five entries are negligible.
- // Compiled out entirely with the `mcp` feature.
- #[cfg(feature = "mcp")]
- {
- let cfg = Arc::new(root_config.clone());
- tools.push(Box::new(McpSetupSearchTool::new(Arc::clone(&cfg))));
- tools.push(Box::new(McpSetupGetTool::new(Arc::clone(&cfg))));
- tools.push(Box::new(McpSetupRequestSecretTool::new(Arc::clone(&cfg))));
- tools.push(Box::new(McpSetupTestConnectionTool::new(Arc::clone(&cfg))));
- tools.push(Box::new(McpSetupInstallAndConnectTool::new(cfg)));
- tracing::debug!("[mcp_setup] registered 5 setup-agent tools");
- }
-
// Generic remote MCP bridge tools. These let the agent enumerate
// named MCP servers and forward `tools/call` through the core
// instead of hardcoding one bespoke MCP integration per server.
diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rs
index 4545d7cb35..9b053abfdd 100644
--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs
@@ -88,10 +88,11 @@ pub const PACKS: &[ToolPack] = &[
},
ToolPack {
id: "integrations",
- // The setup and use hand-offs (`setup_mcp_server`, `use_mcp_server`) are
- // not members: they are the orchestrator's direct route into this family.
- // See `DELIBERATELY_UNPACKED_HANDOFFS`.
- summary: "MCP registry tools: search, inspect, install, connect and disconnect servers, check their status, and call a connected server's tools.",
+ // The use hand-off (`use_mcp_server`) is not a member: it is the
+ // orchestrator's direct route into this family. See
+ // `DELIBERATELY_UNPACKED_HANDOFFS`. There is no install tool — servers
+ // are declared by the user in mcp.json.
+ summary: "MCP registry tools: search and inspect the catalog, connect and disconnect installed servers, check their status, and call a connected server's tools.",
tools: &[
"mcp_registry_status",
"mcp_registry_search",
@@ -101,11 +102,9 @@ pub const PACKS: &[ToolPack] = &[
"mcp_registry_connect",
"mcp_registry_disconnect",
"mcp_registry_tool_call",
- "mcp_registry_config_assist",
- "mcp_registry_install",
"mcp_registry_uninstall",
],
- owners: &["mcp_agent", "mcp_setup", "planner"],
+ owners: &["mcp_agent", "planner"],
},
ToolPack {
id: "composio",
@@ -373,10 +372,9 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &[
/// The MCP and skill hand-offs are deliberately NOT packed either (#6302).
///
-/// `setup_mcp_server`, `use_mcp_server`, `setup_skills` and `run_skill` are the
-/// orchestrator's whole route into two families: it installs and uses MCP
-/// servers and skills only by handing the task to the specialist that owns
-/// that family. Packed, they sat in the same listing as the raw
+/// `use_mcp_server`, `setup_skills` and `run_skill` are the orchestrator's
+/// whole route into two families: it uses MCP servers and installs and uses
+/// skills only by handing the task to the specialist that owns that family. Packed, they sat in the same listing as the raw
/// `mcp_registry_*` / `skill_registry_*` tools, one `use_skill` round trip
/// away, and a live account showed the cost: across 11 turns the orchestrator
/// called the raw tools itself, guessed at tool names, and never handed off.
@@ -392,7 +390,6 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &[
/// as soon as it is unpacked and listed here.
#[cfg(test)]
pub(crate) const DELIBERATELY_UNPACKED_HANDOFFS: &[&str] = &[
- "setup_mcp_server",
"use_mcp_server",
"setup_skills",
"run_skill",
diff --git a/crates/openhuman-core/src/tools/user_filter.rs b/crates/openhuman-core/src/tools/user_filter.rs
index bcfa570f12..6792c9a35a 100644
--- a/crates/openhuman-core/src/tools/user_filter.rs
+++ b/crates/openhuman-core/src/tools/user_filter.rs
@@ -158,7 +158,7 @@ const TOOL_FAMILIES: &[ToolFamily] = &[
},
ToolFamily {
id: "mcp_manage",
- rust_names: &["mcp_registry_install", "mcp_registry_uninstall"],
+ rust_names: &["mcp_registry_uninstall"],
default_enabled: false,
},
ToolFamily {