Skip to content

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

test(mcp): require storage-sqlite for the mcp_module test

Steven Enamakel16e0040e02f3
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index 65a0379bc7..89f0454469 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -195,4 +195,4 @@ required-features = ["profiles"]
# scripted HTTP MCP server through the module.
[[test]]
name = "mcp_module"
-required-features = ["mcp", "modules"]
+required-features = ["mcp", "modules", "storage-sqlite"]
diff --git a/crates/openhuman-embed/tests/mcp_module.rs b/crates/openhuman-embed/tests/mcp_module.rs
index d6f4865f5f..2120bd1966 100644
--- a/crates/openhuman-embed/tests/mcp_module.rs
+++ b/crates/openhuman-embed/tests/mcp_module.rs
@@ -2,11 +2,16 @@
//! 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.
+//! 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
+//! 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).
mod common;
-use common::{chat_completion, offline_config, route, runtime, scripted_provider, stub_backend};
+use common::{offline_config, route, runtime, scripted_provider, stub_backend};
use openhuman_core::config::schema::{ModuleOverride, ModuleSourceMode};
use openhuman_embed::{
Access, AgentSpec, McpServer, Runtime, RuntimeModule, ServiceSet, Workspace,
@@ -51,10 +56,6 @@ fn an_embedded_runtime_calls_a_tool_through_the_tinymcp_module() {
}
fn scenario() {
- let _ = tracing_subscriber::fmt()
- .with_env_filter("debug,hyper=info,reqwest=info")
- .with_test_writer()
- .try_init();
let rt = runtime();
openhuman_embed::modules::register_linked("tinymcp", tinymcp::linked_module);
rt.block_on(async {
@@ -129,6 +130,5 @@ fn scenario() {
"{methods:?} / {results}"
);
assert!(results.contains("sunny"), "{results}");
- let _ = chat_completion;
});
}
diff --git a/vendor/tinymcp b/vendor/tinymcp
index 26f782e787..21d7bb8d49 160000
--- a/vendor/tinymcp
+++ b/vendor/tinymcp
@@ -1 +1 @@
-Subproject commit 26f782e787a6944d8aefb274c66cd7c1136cf45c
+Subproject commit 21d7bb8d492186d8c3ae8f53a22b3fb9e6e2d508