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 stub to test module port

Steven Enamakelba3db3e9966a
diff --git a/crates/openhuman-core/src/mcp/test_module_port.rs b/crates/openhuman-core/src/mcp/test_module_port.rs
index 8b4262e21d..c84a920970 100644
--- a/crates/openhuman-core/src/mcp/test_module_port.rs
+++ b/crates/openhuman-core/src/mcp/test_module_port.rs
@@ -12,8 +12,9 @@ use crate::config::Config;
use crate::mcp::module_client::{McpConfiguredClient, McpModulePort};
use tinybus::module::ModuleCallError;
use tinymcp_bus::{
- McpWriteRecord, NewMcpWriteRecord, OpenConfiguredResponse, ServerArgumentRule,
- ServerArgumentsValidation, TransitionStatus, ValidateServerArgumentsRequest,
+ McpToolPresentation, McpWriteRecord, NewMcpWriteRecord, OpenConfiguredResponse,
+ PrepareAgentToolsRequest, ServerArgumentRule, ServerArgumentsValidation, TransitionStatus,
+ ValidateServerArgumentsRequest,
};
#[derive(Default)]
@@ -83,6 +84,13 @@ impl McpModulePort for Port {
}
}
+ async fn prepare_agent_tools(
+ &self,
+ _request: PrepareAgentToolsRequest,
+ ) -> Result<Vec<McpToolPresentation>, ModuleCallError> {
+ Ok(Vec::new())
+ }
+
async fn validate_server_arguments(
&self,
request: ValidateServerArgumentsRequest,