Skip to content

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

test(mcp): add prepare_agent_tools stubs to registry test ports

Steven Enamakel5df8f4155948
diff --git a/crates/openhuman-core/src/mcp/registry/config_ops_tests.rs b/crates/openhuman-core/src/mcp/registry/config_ops_tests.rs
index ffac6fb5cb..d5c9b3be42 100644
--- a/crates/openhuman-core/src/mcp/registry/config_ops_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/config_ops_tests.rs
@@ -66,6 +66,13 @@ impl McpModulePort for ConfigDocumentPort {
_ => Err(ModuleCallError::Unavailable),
}
}
+
+ async fn prepare_agent_tools(
+ &self,
+ _: tinymcp_bus::PrepareAgentToolsRequest,
+ ) -> Result<Vec<tinymcp_bus::McpToolPresentation>, ModuleCallError> {
+ Ok(Vec::new())
+ }
}
fn config(workspace: &tempfile::TempDir) -> Config {
diff --git a/crates/openhuman-core/src/mcp/registry/ops_tests.rs b/crates/openhuman-core/src/mcp/registry/ops_tests.rs
index 2c38e9b2b1..9882204095 100644
--- a/crates/openhuman-core/src/mcp/registry/ops_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/ops_tests.rs
@@ -120,6 +120,13 @@ impl McpModulePort for RegistryPort {
_ => Err(ModuleCallError::IncompatibleContract),
}
}
+
+ async fn prepare_agent_tools(
+ &self,
+ _: tinymcp_bus::PrepareAgentToolsRequest,
+ ) -> Result<Vec<tinymcp_bus::McpToolPresentation>, ModuleCallError> {
+ Ok(Vec::new())
+ }
}
fn status(server_id: &str, qualified_name: &str) -> tinymcp_bus::ConnStatus {