Skip to content

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

feat(ops): expose storage callback to tinymcp module

Steven Enamakel4a8c0ad74e0e
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rs
index 9ecac130f0..cc6bcef043 100644
--- a/crates/openhuman-core/src/modules/ops.rs
+++ b/crates/openhuman-core/src/modules/ops.rs
@@ -327,6 +327,16 @@ fn module_config(config: &Config, id: &str) -> serde_json::Value {
serde_json::json!({ "offered_toolkits": super::connectors::offered_toolkits(config) })
});
}
+ // TinyMCP keeps its servers, secrets and audit trail in host storage and
+ // refuses to load without the bus name that serves it. That name is the
+ // storage host's interface, attached before any module loads
+ // ([`super::storage_host::install`]); the host still derives the scope and
+ // grant from the authenticated caller, never from this value.
+ if id == storage_grant_schemas::tinymcp::MODULE_ID {
+ return serde_json::json!({
+ "storage_callback": tinystoragedrivers_bus::STORAGE_INTERFACE.to_string()
+ });
+ }
serde_json::json!({})
}