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
test(mcp): load tinymcp from a staged artifact instead of linking it
Steven Enamakelb0eabfbc838a
diff --git a/crates/openhuman-embed/tests/mcp_module.rs b/crates/openhuman-embed/tests/mcp_module.rsindex 3f5b6c2d89..1b502300d7 100644--- a/crates/openhuman-embed/tests/mcp_module.rs+++ b/crates/openhuman-embed/tests/mcp_module.rs@@ -1,10 +1,8 @@//! Host smoke test for the tinymcp module: an embedded runtime that declares an//! HTTP MCP server reaches a tool on it through the module.//!-//! The module is linked into the test binary (`register_linked`) instead of-//! downloaded; the host still supplies everything a released module gets: the-//! storage destination in its config, a storage backend (here the workspace-//! default, which needs `storage-sqlite`), and a grant covering what the+//! The host supplies everything a released module gets: a staged verified+//! module artifact, a SQLite storage backend, and a grant covering what the//! module's client asks for when it connects. Without any one of them the//! module faults at startup and the call answers "TinyMCP module is//! unavailable" (tinyhumansai/openhuman#8280).@@ -12,7 +10,7 @@mod common;use common::{offline_config, route, scripted_provider, stub_backend};-use openhuman_core::config::schema::{ModuleOverride, ModuleSourceMode};+use openhuman_core::config::schema::ModuleOverride;use openhuman_embed::{Access, AgentSpec, McpServer, Runtime, RuntimeModule, ServiceSet, Workspace,};@@ -57,7 +55,6 @@ fn an_embedded_runtime_calls_a_tool_through_the_tinymcp_module() {}fn scenario() {- openhuman_embed::modules::register_linked("tinymcp", tinymcp::linked_module);let rt = tokio::runtime::Builder::new_multi_thread().enable_all().thread_stack_size(openhuman_embed::process::AGENT_WORKER_STACK_BYTES)@@ -80,14 +77,16 @@ fn scenario() {.await;let mut config = offline_config();config.modules.allow_download = false;- config.modules.overrides.push(ModuleOverride::with_source(- "tinymcp",- ModuleSourceMode::Linked,- ));+ let module_path = std::env::var("OPENHUMAN_TINYMCP_TEST_MODULE")+ .expect("staged TinyMCP module artifact");+ config+ .modules+ .overrides+ .push(ModuleOverride::with_path("tinymcp", module_path));let storage_dir = tempfile::tempdir().expect("SQLite storage directory");let storage_url = openhuman_core::storage::config::default_url(storage_dir.path());let runtime = Runtime::builder()- .config(config.clone())+ .config(config).workspace(Workspace::Ephemeral).storage(storage_url).backend_url(backend.uri())@@ -103,9 +102,6 @@ fn scenario() {.build().await.expect("runtime builds");- if let Err(error) = openhuman_core::modules::ensure_loaded(&config, "tinymcp").await {- eprintln!("TinyMCP module load failed: {error}");- }let agent = runtime.agent(AgentSpec::new("mcp-client")