Skip to content

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

fix(registry): remove mcp_setup agent

Steven Enamakelb9498732dec3
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs
index a99729ba83..d1fbd6239a 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs
@@ -466,7 +466,7 @@ pub(crate) async fn dispatch_subagent_with_live_parent(
// orchestrator must relay the question and resume via
// `continue_subagent` — NOT re-spawn a fresh, stateless
// sub-agent. Dropping this status was the #4291 infinite re-spawn
- // loop: a paused mcp_setup was reported as a plain success, the
+ // loop: a paused sub-agent was reported as a plain success, the
// orchestrator's only continuation was to re-delegate, and the new
// run paused again. Mirrors the `spawn_subagent` AwaitingUser path.
SubagentRunStatus::AwaitingUser {
diff --git a/crates/openhuman-core/src/agent/registry/README.md b/crates/openhuman-core/src/agent/registry/README.md
index fa5513c38e..26bbffc7c9 100644
--- a/crates/openhuman-core/src/agent/registry/README.md
+++ b/crates/openhuman-core/src/agent/registry/README.md
@@ -99,7 +99,6 @@ The 29 archetypes in this directory:
| `image_agent` | Image generation/edit specialist |
| `integrations_agent` | Drives a single Composio toolkit (gmail, notion, github, …) per spawn |
| `mcp_agent` (feature `mcp`) | Calls tools on an already-connected MCP server |
-| `mcp_setup` | Walks the user through installing/connecting a new MCP server |
| `morning_briefing` | Proactive scheduled daily summary (tasks, calendar, email, skills) |
| `orchestrator` | Default user-facing `chat`-tier agent; direct-first, delegates only when it materially helps |
| `planner` | Read-only `reasoning`-tier architect: breaks a task into a DAG of subtasks with acceptance criteria |
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader.rs b/crates/openhuman-core/src/agent/registry/agents/loader.rs
index e170737a32..368cc03a58 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader.rs
@@ -237,12 +237,6 @@ pub const BUILTINS: &[BuiltinAgent] = &[
prompt_fn: super::help::prompt::build,
graph_fn: None,
},
- BuiltinAgent {
- id: "mcp_setup",
- toml: include_str!("mcp_setup/agent.toml"),
- prompt_fn: super::mcp_setup::prompt::build,
- graph_fn: None,
- },
// Connected-server execution specialist. Compiled out with the `mcp`
// feature, which drops the `delegate_use_mcp_server` tool from the
// orchestrator's synthesised belt.
diff --git a/crates/openhuman-core/src/agent/registry/agents/mod.rs b/crates/openhuman-core/src/agent/registry/agents/mod.rs
index 78d9de70d9..13e3f32411 100644
--- a/crates/openhuman-core/src/agent/registry/agents/mod.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/mod.rs
@@ -45,7 +45,6 @@ pub mod image_agent;
pub mod integrations_agent;
#[cfg(feature = "mcp")]
pub mod mcp_agent;
-pub mod mcp_setup;
pub mod morning_briefing;
pub mod orchestrator;
pub mod planner;
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
index e91c703f2a..582890b063 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
@@ -148,21 +148,14 @@ allowlist = [
# the agent enforces a strict read → simulate → confirm → execute
# contract that the generic delegation surface does not.
"crypto_agent",
- # MCP setup specialist (#3039). Synthesised into a `delegate_setup_mcp_server`
- # tool at agent-build time. Route any "install / add / set up / connect an MCP
- # server" request here — the agent owns the full flow: search registries →
- # request required secrets via a native dialog (raw values never enter the
- # agent context) → test the connection → commit the install + connect. Without
- # this entry the agent-native install path (issue #3039 gap B5) is unreachable
- # from chat.
- "mcp_setup",
# MCP execution specialist. Synthesised into a `delegate_use_mcp_server`
# tool at agent-build time. Route any request that should be fulfilled by
# calling a tool on an ALREADY-CONNECTED MCP server (e.g. "answer from the
# connected docs MCP", "query the connected X server") here — the agent
# discovers connected servers, lists the chosen server's tools, and invokes
- # the right one. Installing/connecting a NEW server still goes to
- # `mcp_setup`; this entry is the missing "use what's connected" route
+ # the right one. Installing a NEW server is the user's own action in
+ # Connections → MCP Servers (mcp.json); this entry is the "use what's
+ # connected" route
# (the orchestrator carries no `mcp_registry_*` tool itself and must not
# carry every connected server's full toolset; #6302).
"mcp_agent",
@@ -318,7 +311,7 @@ named = [
# is built from.
"list_subagents",
# Resume a sub-agent that paused on `ask_user_clarification` (#4291). When
- # a delegated sub-agent (e.g. mcp_setup via `delegate_setup_mcp_server`)
+ # a delegated sub-agent (e.g. crypto_agent via `delegate_do_crypto`)
# asks the user a question, the runner checkpoints it and the orchestrator
# gets a `[SUBAGENT_AWAITING_USER]` envelope with the task_id/agent_id. The
# orchestrator MUST resume that exact checkpoint with the user's answer via
@@ -333,9 +326,9 @@ named = [
# allowlist and raises the in-chat Connect card.
"composio_connect",
# No `mcp_registry_*` and no `skill_registry_*` tools here (#6302). The
- # orchestrator installs and uses MCP servers and skills only by handing the
- # task to the specialist that owns the family: `setup_mcp_server`
- # (mcp_setup), `use_mcp_server` (mcp_agent), `setup_skills` (skill_setup)
+ # orchestrator uses MCP servers and installs and uses skills only by handing
+ # the task to the specialist that owns the family: `use_mcp_server`
+ # (mcp_agent), `setup_skills` (skill_setup)
# and `run_skill` (skill_executor), all synthesised from `[subagents]` and
# advertised directly. With those hand-offs on its belt, the `integrations`
# and `skills` packs are closed to it (`toolpacks::closed_by_direct_handoff`),
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
index 60cf1f9934..a990dbbfdb 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
@@ -26,7 +26,7 @@ Take the first branch that applies:
- Never recite a UI menu path from memory. Channels and apps live under **Connections** in the left sidebar (Channels / OAuth tabs); there is no "Settings → Connections" submenu. Unsure of the exact path? Say so instead of guessing.
- Crypto and market work enforces read → simulate → confirm → execute and refuses to fabricate chain ids, token addresses or market symbols. **Never** route a crypto write through `delegate_to_integrations_agent` or `run_code`.
- **Skills.** Find or install a skill → `setup_skills`. Run an installed one (see **Installed Skills**) → `run_skill`. Hand over the whole task: don't search a registry, install, or read a skill yourself.<!--route:skills-->
- - **MCP servers.** Use an already-connected server (see **Connected MCP Servers**) → `use_mcp_server`. Add, install or connect a new one → `setup_mcp_server`. Pass a plain-language task, not server ids or tool names.<!--route:mcp-->
+ - **MCP servers.** Use an already-connected server (see **Connected MCP Servers**) → `use_mcp_server`. Pass a plain-language task, not server ids or tool names. Adding a new server is the user's own action: point them at Connections → MCP Servers, where they declare it in `mcp.json`.<!--route:mcp-->
- A skill runs in an isolated worker, so its instructions never enter this conversation — you get only its result. If that result carries a `## Handoff Plan` (steps its narrow toolset couldn't perform, e.g. sending email or writing memory), carry them out yourself through the routes above and report the combined outcome. Treat them as _proposed_ actions: never bypass the approval gate, especially for third-party skills.
- Live or time-sensitive asks (weather, forecasts, prices, recent news, "use live data") get answered **now**: one quick fact direct, anything broader via `research` with a prompt that asks for live sources. Don't stop at "on it", and don't wait for a named provider that isn't wired in.
- Before either, check **Connected MCP Servers**: if one of them can answer, hand it to `use_mcp_server` first.<!--route:mcp-->