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
chore(core): remove mcp_setup agent and related infrastructure
Steven Enamakelf07cd9f7c4a7
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex aeb1ef3bc4..af8c5ff059 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -1200,10 +1200,7 @@ pub fn namespace_description(namespace: &str) -> Option<&'static str> {"Operator-facing dashboard aggregations: per-model health comparison rows.",),"mcp_clients" => Some(- "Browse the Smithery.ai MCP registry, install MCP servers locally, manage their stdio connections, and expose their tools to the agent.",- ),- "mcp_setup" => Some(- "MCP setup agent surface: search registries, request secrets out-of-band (opaque refs, no raw values in agent context), test, and install + connect.",+ "Browse the MCP registries, declare the user's servers in one mcp.json document, manage their connections and credentials, and expose their tools to the agent.",),"decrypt" => Some("Decrypt secure values managed by secret storage."),"doctor" => Some("Run diagnostics for workspace and runtime health."),diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex 7445921ada..30a8ab98da 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -1074,16 +1074,6 @@ pub enum DomainEvent {success: bool,elapsed_ms: u64,},- /// The MCP setup agent asked the user for a secret value. The UI- /// subscribes to this and renders a native prompt; on submit it calls- /// `openhuman.mcp_setup_submit_secret`. `ref_id` is the opaque handle- /// returned to the agent; the raw secret value never traverses this- /// event.- McpSetupSecretRequested {- ref_id: String,- key_name: String,- prompt: String,- },/// A remote MCP server returned a tool whose `description` or/// `title` failed the input-validation scan and was dropped from/// the registry before reaching the agent LLM context. Surfaced for@@ -1529,7 +1519,6 @@ impl DomainEvent {| Self::McpServerConnected { .. }| Self::McpServerDisconnected { .. }| Self::McpClientToolExecuted { .. }- | Self::McpSetupSecretRequested { .. }| Self::McpToolRejected { .. }| Self::McpServerProbeTimedOut { .. }| Self::McpServerTransportDropped { .. }@@ -1654,7 +1643,6 @@ impl DomainEvent {Self::McpServerConnected { .. } => "McpServerConnected",Self::McpServerDisconnected { .. } => "McpServerDisconnected",Self::McpClientToolExecuted { .. } => "McpClientToolExecuted",- Self::McpSetupSecretRequested { .. } => "McpSetupSecretRequested",Self::McpToolRejected { .. } => "McpToolRejected",Self::McpServerProbeTimedOut { .. } => "McpServerProbeTimedOut",Self::McpServerTransportDropped { .. } => "McpServerTransportDropped",diff --git a/crates/openhuman-core/src/core/socketio.rs b/crates/openhuman-core/src/core/socketio.rsindex 74e12d8e2d..d729f82bd6 100644--- a/crates/openhuman-core/src/core/socketio.rs+++ b/crates/openhuman-core/src/core/socketio.rs@@ -817,7 +817,6 @@ pub fn spawn_web_channel_bridge(io: SocketIo) {let io_notify = io.clone();let io_transcription = io.clone();let io_auth = io.clone();- let io_mcp_setup = io.clone();let io_memory_sync = io.clone();let io_channel_status = io.clone();let io_companion = io.clone();@@ -1038,59 +1037,6 @@ pub fn spawn_web_channel_bridge(io: SocketIo) {log::debug!("[socketio] workspace_changed bridge stopped");});- // 6b. McpSetupSecretRequested → broadcast `mcp_setup:secret_requested`- // so the UI can render a native input dialog. Only the opaque- // ref + safe display fields are forwarded; raw secret values- // are not part of the event payload.- tokio::spawn(async move {- let bus = {- const RETRY_INTERVAL_MS: u64 = 250;- const MAX_WAIT_SECS: u64 = 30;- let max_attempts = (MAX_WAIT_SECS * 1000) / RETRY_INTERVAL_MS;- let mut attempts: u64 = 0;- loop {- if let Some(bus) = crate::core::bus::BUS.get() {- break bus;- }- attempts += 1;- if attempts > max_attempts {- log::warn!(- "[socketio] event_bus not initialised after {}s — mcp_setup bridge giving up",- MAX_WAIT_SECS- );- return;- }- tokio::time::sleep(std::time::Duration::from_millis(RETRY_INTERVAL_MS)).await;- }- };- let mut rx = bus.receiver();- loop {- let Some(event) = rx.recv().await else {- break;- };- if let crate::core::events::DomainEvent::McpSetupSecretRequested {- ref_id,- key_name,- prompt,- } = event- {- log::info!(- "[socketio] broadcast mcp_setup:secret_requested ref={} key={}",- ref_id,- key_name- );- let payload = serde_json::json!({- "ref_id": ref_id,- "key_name": key_name,- "prompt": prompt,- });- let _ = io_mcp_setup.emit("mcp_setup:secret_requested", &payload);- let _ = io_mcp_setup.emit("mcp_setup_secret_requested", &payload);- }- }- log::debug!("[socketio] mcp_setup secret_requested bridge stopped");- });-// 5. Transcription results → broadcast to all connected clients.tokio::spawn(async move {let mut rx = crate::voice::dictation_listener::subscribe_transcription_results();diff --git a/crates/openhuman-core/src/mcp/mod.rs b/crates/openhuman-core/src/mcp/mod.rsindex 73aa69875b..c19e4953bc 100644--- a/crates/openhuman-core/src/mcp/mod.rs+++ b/crates/openhuman-core/src/mcp/mod.rs@@ -10,7 +10,7 @@//!//! - [`host`] — the one `tinymcp` service this process holds, and the//! conversion from this application's configuration into what it takes.-//! - [`registry`] — the `mcp_clients` and `mcp_setup` RPC surface, the+//! - [`registry`] — the `mcp_clients` RPC surface, the//! agent-facing tools, and the prompt-injection scan over remote tool//! definitions.//! - [`audit`] — the RPC surface over the write-audit log.diff --git a/crates/openhuman-core/src/mcp/server/resources.rs b/crates/openhuman-core/src/mcp/server/resources.rsindex 301d439f7d..eca3c40df3 100644--- a/crates/openhuman-core/src/mcp/server/resources.rs+++ b/crates/openhuman-core/src/mcp/server/resources.rs@@ -187,12 +187,6 @@ const RESOURCE_CATALOG: &[PromptResource] = &[description: "Specialist worker for evidence-grounded presentation generation.",content: include_str!("../../agent/registry/agents/presentation_agent/prompt.md"),},- PromptResource {- uri: "openhuman://prompts/agents/mcp_setup",- name: "mcp_setup",- description: "Worker that guides the user through MCP client configuration.",- content: include_str!("../../agent/registry/agents/mcp_setup/prompt.md"),- },PromptResource {uri: "openhuman://prompts/agents/mcp_agent",name: "mcp_agent",diff --git a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rsindex 49499d349e..5b9a171353 100644--- a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs+++ b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs@@ -18,7 +18,7 @@ use crate::modules::types::{LoadPolicy, ModuleRecord, PlatformAsset};////// **What stays out of the module is host policy**, and the split is the same/// one the contract's own documentation draws: the prompt-injection scan over-/// remote tool definitions, the `mcp_clients` / `mcp_setup` RPC surface, the+/// remote tool definitions, the `mcp_clients` RPC surface, the/// agent-facing tools, and the proxy *scoping* decision all belong to this/// application's threat model, not to a protocol client. `tinymcp-bus` carries/// the vocabulary; this table says which bytes may speak it.