The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(mcp): add server arguments validation to module client
Steven Enamakel90a06e94cf48
diff --git a/crates/openhuman-core/src/mcp/module_client.rs b/crates/openhuman-core/src/mcp/module_client.rsindex be7eba0f08..92be084d02 100644--- a/crates/openhuman-core/src/mcp/module_client.rs+++ b/crates/openhuman-core/src/mcp/module_client.rs@@ -22,7 +22,8 @@ use serde_json::{Map, Value};use tinymcp_bus::{agent_tools::{McpToolPresentation, PrepareAgentToolsRequest},config::{McpClientConfig, OpenConfiguredRequest, OpenConfiguredResponse, TransitionStatus},- names, McpRemoteTool, ScrubStaticToolsRequest, SupervisorBatch,+ names, McpRemoteTool, ScrubStaticToolsRequest, ServerArgumentsValidation,+ ValidateServerArgumentsRequest, SupervisorBatch,};use crate::{@@ -90,6 +91,11 @@ pub(crate) trait McpModulePort: Send + Sync {&self,request: PrepareAgentToolsRequest,) -> Result<Vec<McpToolPresentation>, ModuleCallError>;++ async fn validate_server_arguments(+ &self,+ request: ValidateServerArgumentsRequest,+ ) -> Result<ServerArgumentsValidation, ModuleCallError>;}struct TinyMcpPort {@@ -372,6 +378,16 @@ impl McpConfiguredClient {.await}+ async fn validate_server_arguments(+ &self,+ request: ValidateServerArgumentsRequest,+ ) -> Result<ServerArgumentsValidation, ModuleCallError> {+ if SHUTTING_DOWN.load(Ordering::Acquire) {+ return Err(ModuleCallError::Unavailable);+ }+ self.port.validate_server_arguments(request).await+ }+/// Normalizes host-supplied MCP arguments through TinyMCP's bounded/// implementation operation.pub(crate) async fn normalize_tool_arguments(