The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(agent): update MCP agent prompts to clarify server setup is user-managed
Steven Enamakel4f3f5c7cd729
diff --git a/crates/openhuman-core/src/agent/registry/agents/mcp_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/mcp_agent/agent.tomlindex d35dde75e7..aa5ebb9163 100644--- a/crates/openhuman-core/src/agent/registry/agents/mcp_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/mcp_agent/agent.toml@@ -1,7 +1,7 @@id = "mcp_agent"display_name = "MCP Agent"delegate_name = "use_mcp_server"-when_to_use = "Fulfils a request by calling tools on an ALREADY-CONNECTED MCP server (e.g. answer from a connected docs MCP, query a connected data/API server, run a connected server's tool). Discovers which servers are connected, lists the chosen server's tools, then invokes the right one with the right arguments and reports the result. Use whenever the work can be done by a tool on a server the user has already connected. NOT for installing / adding / setting up a new server — route that to setup_mcp_server instead."+when_to_use = "Fulfils a request by calling tools on an ALREADY-CONNECTED MCP server (e.g. answer from a connected docs MCP, query a connected data/API server, run a connected server's tool). Discovers which servers are connected, lists the chosen server's tools, then invokes the right one with the right arguments and reports the result. Use whenever the work can be done by a tool on a server the user has already connected. NOT for installing / adding / setting up a new server — the user declares those themselves in Connections → MCP Servers (mcp.json)."temperature = 0.3max_iterations = 10iteration_policy = "extended"@@ -18,7 +18,7 @@ hint = "agentic"[tools]# Connected-server execution surface only. Discovery (`status` /# `list_tools`) + ensure-live (`connect`) + execute (`tool_call`). No-# install/uninstall (that is `mcp_setup`'s secret-handling job), no shell,+# install/uninstall (servers are declared by the user in mcp.json), no shell,# file, or network — this agent only relays through already-connected MCP# servers. `resolve_time` so any time-window arguments are exact, and# `ask_user_clarification` for natural-language checkpoints.diff --git a/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.md b/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.mdindex fbf392d629..015cbdfe34 100644--- a/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.md+++ b/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.md@@ -1,6 +1,6 @@# MCP Agent-You fulfil a request by calling tools on MCP servers the user has **already connected**. You do not install, add, or configure new servers — that is the MCP Setup Agent's job (`setup_mcp_server`). If the server the task needs is not connected, say so and suggest setting it up; do not try to install it yourself.+You fulfil a request by calling tools on MCP servers the user has **already connected**. You do not install, add, or configure new servers — the user declares those themselves in Connections → MCP Servers, in their `mcp.json`. If the server the task needs is not connected, say so and point them there; do not try to install it yourself.## Your tool surface@@ -16,7 +16,7 @@ You have **nothing else** — no shell, no file I/O, no general HTTP. Everything## Standard flow-1. **Find the server.** Call `mcp_registry_status`. Pick the `connected` server that matches the request. If the obvious server shows `disconnected` (but installed + enabled), call `mcp_registry_connect(server_id)` to bring it live. If nothing relevant is connected or installed, tell the user and suggest `setup_mcp_server`.+1. **Find the server.** Call `mcp_registry_status`. Pick the `connected` server that matches the request. If the obvious server shows `disconnected` (but installed + enabled), call `mcp_registry_connect(server_id)` to bring it live. If nothing relevant is connected or installed, tell the user and point them at Connections → MCP Servers to declare it in `mcp.json`.2. **Discover its tools.** Call `mcp_registry_list_tools(server_id)`. Read the tool names + input schemas; choose the tool that best answers the request.3. **Call the tool.** Call `mcp_registry_tool_call({ server_id, tool_name, arguments })` with arguments that satisfy the schema. Resolve any time windows via `resolve_time` first.4. **Read the result.** The result has `is_error` and a `result` payload (usually MCP `content` blocks). If `is_error: true`, surface the error plainly and, if it looks like a bad argument, fix the arguments and retry once. If a search-style tool returns empty, try a more targeted tool or query before concluding there's nothing.diff --git a/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.rsindex 08af40ef4a..1e4f48bb90 100644--- a/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/mcp_agent/prompt.rs@@ -1,10 +1,9 @@//! System prompt builder for the `mcp_agent` built-in agent.//!-//! Mirrors the `mcp_setup` builder: render the static archetype, then-//! append the tool block so the model sees the `mcp_registry_*` tool-//! schemas (filtered down by the harness from the `agent.toml` allowlist).-//! This agent *uses* already-connected MCP servers; `mcp_setup` *installs*-//! them.+//! Renders the static archetype, then appends the tool block so the model+//! sees the `mcp_registry_*` tool schemas (filtered down by the harness from+//! the `agent.toml` allowlist). This agent *uses* already-connected MCP+//! servers; adding one is the user's own action in `mcp.json`.use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};use anyhow::Result;diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex 4bc230dffc..86d71f0c83 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@ -300,9 +300,9 @@ fn strip_route_lines(archetype: &str, skills: bool, mcp: bool) -> String {////// So: exact match first, then the longest registry id that `agent_id` extends/// at an `_` boundary. Longest wins because ids are not prefix-free —-/// `integrations_agent` starts with no other id today, but `mcp_agent` and-/// `mcp_setup` share a stem, and a shorter accidental match would resolve a-/// renamed session onto the wrong agent's subagent list.+/// `integrations_agent` starts with no other id today, but `skill_setup` and+/// `skill_executor` share a stem, and a shorter accidental match would resolve+/// a renamed session onto the wrong agent's subagent list.fn resolve_definition<'r>(registry: &'r AgentDefinitionRegistry,agent_id: &str,