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(embed): load tinymcp example from a staged module artifact
Steven Enamakeld53e650dcc8e
diff --git a/crates/openhuman-embed/examples/mcp.rs b/crates/openhuman-embed/examples/mcp.rsindex c0c8ccb852..a10edacd79 100644--- a/crates/openhuman-embed/examples/mcp.rs+++ b/crates/openhuman-embed/examples/mcp.rs@@ -4,7 +4,7 @@//! Feature: mcp,storage-sqlitemod support;-use openhuman_core::config::schema::{ModuleOverride, ModuleSourceMode};+use openhuman_core::config::schema::ModuleOverride;use openhuman_embed::{AgentSpec, Runtime, RuntimeModule, ServiceSet, Workspace};fn main() -> anyhow::Result<()> {@@ -14,16 +14,16 @@ fn main() -> anyhow::Result<()> {async fn run() -> anyhow::Result<()> {let backend = support::stub_backend().await;let provider = support::provider("hello from the stub").await;- // MCP runs in the tinymcp module. A released build downloads it; this- // offline example links it in instead, and the module keeps its state in- // the workspace's default (SQLite) storage.- openhuman_embed::modules::register_linked("tinymcp", tinymcp::linked_module);+ // The test runner stages the released TinyMCP module and passes its path.+ // TinyMCP needs a host storage callback, which requires a verified module+ // artifact rather than an in-process linked module.let mut config = support::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")?;+ config+ .modules+ .overrides+ .push(ModuleOverride::with_path("tinymcp", module_path));// TinyMCP needs a host storage callback even when linked into this example.let storage_dir = tempfile::tempdir()?;let storage_url = openhuman_core::storage::config::default_url(storage_dir.path());diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex 0b342bac1c..5ba0f8c4cd 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -499,7 +499,7 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {// Dev profile: the release-declared linux_fleet measurement then// shares the plain dev build instead of a thin-LTO one nothing else// can reuse (and that would need cleaning afterwards).- run: "node scripts/run-embed-examples.mjs --profile dev",+ run: withModules("node scripts/run-embed-examples.mjs --profile dev"),},{name: "tinyhumans-clippy",