Skip to content

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

refactor(mcp): re-export registry parameter contract from registry module

Steven Enamakele45c22f14644
diff --git a/crates/openhuman-core/src/core/all_bound_controller_tests.rs b/crates/openhuman-core/src/core/all_bound_controller_tests.rs
index f25742e1c8..01f0e39529 100644
--- a/crates/openhuman-core/src/core/all_bound_controller_tests.rs
+++ b/crates/openhuman-core/src/core/all_bound_controller_tests.rs
@@ -322,7 +322,7 @@ fn production_registry_binds_mcp_registry_get_to_its_declared_parser() {
entry.rpc_method_name(),
"openhuman.mcp_clients_registry_get"
);
- let contract = crate::mcp::registry::schemas::registry_get_parameter_contract();
+ let contract = crate::mcp::registry::registry_get_parameter_contract();
crate::core::all::verify_parameter_contracts(
std::slice::from_ref(entry),
std::slice::from_ref(&contract),
diff --git a/crates/openhuman-core/src/mcp/registry/mod.rs b/crates/openhuman-core/src/mcp/registry/mod.rs
index c54ca8f365..05ed484f27 100644
--- a/crates/openhuman-core/src/mcp/registry/mod.rs
+++ b/crates/openhuman-core/src/mcp/registry/mod.rs
@@ -47,6 +47,8 @@ pub mod tools;
#[cfg(feature = "mcp")]
pub(crate) use schemas::registry_get_controller_entry;
+#[cfg(all(test, feature = "mcp"))]
+pub(crate) use schemas::registry_get_parameter_contract;
#[cfg(feature = "mcp")]
pub use schemas::{
all_controller_schemas as all_mcp_registry_controller_schemas,