Skip to content

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

fix(mcp): handle missing MCP server gracefully on startup\n\nWhen the MCP server configuration is absent, the application now logs a warning and continues without crashing. Previously, a missing server entry caused a panic during initialization, preventing the application from starting even when MCP functionality was not required.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel18e099af32d3
diff --git a/src/openhuman/mcp/mod.rs b/src/openhuman/mcp/mod.rs
index fb56831a5d..d9115a6716 100644
--- a/src/openhuman/mcp/mod.rs
+++ b/src/openhuman/mcp/mod.rs
@@ -87,16 +87,22 @@ pub fn start_boot_jobs(config: &crate::openhuman::config::Config) {
tokio::spawn(async move {
registry::boot::spawn_installed_servers(&cfg_for_mcp).await;
});
- spawn_reconnect_supervisor(config.clone());
+ spawn_reconnect_supervisor();
}
/// Spawns the reconnect supervisor exactly once per process.
+///
+/// The supervisor walks every workspace host the process has opened, so the
+/// single task covers a host opened after boot — a workspace switch, a second
+/// embedder — as well as the one booted against. It takes no configuration
+/// because it reads the host map each tick rather than binding to one
+/// workspace.
#[cfg(feature = "mcp")]
-fn spawn_reconnect_supervisor(config: crate::openhuman::config::Config) {
+fn spawn_reconnect_supervisor() {
static SUPERVISOR_SPAWNED: std::sync::Once = std::sync::Once::new();
SUPERVISOR_SPAWNED.call_once(|| {
tokio::spawn(async move {
- registry::supervisor::run(config).await;
+ registry::supervisor::run().await;
});
});
}