Skip to content

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

test(mcp): install sqlite test backend in dispatch policy test

Steven Enamakel07e44e44fe92
diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs
index 981ede1b1a..9d351e048b 100644
--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs
+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs
@@ -123,6 +123,15 @@ async fn call_tool_judges_the_policy_of_the_explicit_context_across_scopes() {
let mut allowing = crate::config::Config::default();
allowing.workspace_dir = tmp_allow.path().to_path_buf();
allowing.action_dir = tmp_allow.path().to_path_buf();
+ // Validating tool arguments calls the tinymcp module, which reaches the
+ // host's installed storage.
+ let storage = crate::storage::test_support::sqlite_backend().expect("SQLite test backend");
+ let _storage_guard = crate::storage::test_support::install_for_test(
+ &storage.url,
+ Arc::clone(&storage.backend),
+ );
+ denying.storage.url = Some(storage.url.clone());
+ allowing.storage.url = Some(storage.url.clone());
let deny_core = CoreContext::for_test_with_config(DomainSet::full(), denying);
let allow_core = CoreContext::for_test_with_config(DomainSet::full(), allowing);