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: files changed crates/openhuman-core/src/agent/session_host/prelude_integrations.rs,crates/ope
Steven Enamakel9c9480d4305b
diff --git a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rsindex 6524716364..833b5e2706 100644--- a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs+++ b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs@@ -186,9 +186,7 @@ impl OpenHumanTurnPrelude {#[cfg(feature = "mcp")]async fn refresh_connected_mcp_tools(&self) {let config = match self.runtime_config.as_deref() {- Some(config) => {- config- }+ Some(config) => config,None => {self.mutable.lock()@@ -206,28 +204,23 @@ impl OpenHumanTurnPrelude {label: server.qualified_name.clone(),family: server.qualified_name,display_name: server.display_name,- tools: crate::mcp::registry::tools_safe_for_agent(- &server.server_id,- server.tools,- ),+ tools: crate::mcp::registry::tools_safe_for_agent(&server.server_id, server.tools),default_exposure: tinymcp_bus::McpToolExposure::Deferred,direct_tools: Vec::new(),}).collect::<Vec<_>>();let prepared = match crate::mcp::module_client::McpConfiguredClient::for_config(config) {- Ok(client) => {- client- .call(- &crate::mcp::host::client_config(config),- tinymcp_bus::names::methods::PREPARE_AGENT_TOOLS,- (tinymcp_bus::PrepareAgentToolsRequest { sources },),- )- .await- .unwrap_or_else(|error| {- tracing::debug!(?error, "[mcp] module tool presentation unavailable");- Vec::new()- })- }+ Ok(client) => client+ .call(+ &crate::mcp::host::client_config(config),+ tinymcp_bus::names::methods::PREPARE_AGENT_TOOLS,+ (tinymcp_bus::PrepareAgentToolsRequest { sources },),+ )+ .await+ .unwrap_or_else(|error| {+ tracing::debug!(?error, "[mcp] module tool presentation unavailable");+ Vec::new()+ }),Err(error) => {tracing::debug!(?error, "[mcp] no module for tool presentation");Vec::new()diff --git a/crates/openhuman-core/src/mcp/registry/action_tool_tests.rs b/crates/openhuman-core/src/mcp/registry/action_tool_tests.rsindex 8def5ebe50..75bbc3aaf7 100644--- a/crates/openhuman-core/src/mcp/registry/action_tool_tests.rs+++ b/crates/openhuman-core/src/mcp/registry/action_tool_tests.rs@@ -2,7 +2,11 @@ use super::*;use serde_json::json;use tinytools::{PermissionLevel, ToolExposure};-fn presentation(server_id: &str, name: &str, legacy_name: &str) -> tinymcp_bus::McpToolPresentation {+fn presentation(+ server_id: &str,+ name: &str,+ legacy_name: &str,+) -> tinymcp_bus::McpToolPresentation {tinymcp_bus::McpToolPresentation {name: name.into(),legacy_name: legacy_name.into(),@@ -28,7 +32,11 @@ fn presentation(server_id: &str, name: &str, legacy_name: &str) -> tinymcp_bus::fn host_adapter_uses_the_module_prepared_name_schema_and_policy_tags() {let tools = deferred_connected_tools(Arc::new(Config::default()),- &[presentation("server-1", "mcp_weather_read_goals_abc123", "legacy-goals")],+ &[presentation(+ "server-1",+ "mcp_weather_read_goals_abc123",+ "legacy-goals",+ )],);assert_eq!(tools.len(), 1);let tool = &tools[0];