Skip to content

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

test(ops): cover tinymcp storage callback config

Steven Enamakel2be2b1e19065
diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rs
index 345d834c13..82d758ce29 100644
--- a/crates/openhuman-core/src/modules/ops_tests.rs
+++ b/crates/openhuman-core/src/modules/ops_tests.rs
@@ -706,3 +706,18 @@ fn the_ahead_warning_is_silent_for_released_modules_other_ids_and_release_builds
// A release build never warns.
assert!(pin_ahead_warning("tinydocs", ModuleSource::Source, Some("tinydocs"), false).is_none());
}
+
+#[test]
+fn tinymcp_is_told_which_bus_name_serves_its_storage() {
+ // TinyMCP refuses to load without a storage destination, so an empty config
+ // faults the module at startup and every MCP call reports "unavailable".
+ let config = ops::module_config_for_test(&Config::default(), "tinymcp");
+ assert_eq!(
+ config,
+ serde_json::json!({ "storage_callback": "ai.tinyhumans.tinystorage.Storage" })
+ );
+ assert_eq!(
+ ops::module_config_for_test(&Config::default(), "tinybox"),
+ serde_json::json!({})
+ );
+}