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(registry): add custom server input parsing and handlers
Steven Enamakel3cae86c65057
diff --git a/src/openhuman/mcp/registry/schemas_part_02.rs b/src/openhuman/mcp/registry/schemas_part_02.rsindex e43f12cd2f..07c5450d5d 100644--- a/src/openhuman/mcp/registry/schemas_part_02.rs+++ b/src/openhuman/mcp/registry/schemas_part_02.rs@@ -132,6 +132,45 @@ fn handle_set_enabled(params: Map<String, Value>) -> ControllerFuture {})}+fn custom_input(+ params: &Map<String, Value>,+) -> Result<crate::openhuman::mcp::registry::custom::CustomServerInput, String> {+ Ok(crate::openhuman::mcp::registry::custom::CustomServerInput {+ display_name: read_required(params, "display_name")?,+ transport: read_required(params, "transport")?,+ command: read_optional(params, "command")?,+ args: read_optional(params, "args")?.unwrap_or_default(),+ url: read_optional(params, "url")?,+ env: read_optional(params, "env")?.unwrap_or_default(),+ description: read_optional(params, "description")?,+ })+}++fn handle_add_custom(params: Map<String, Value>) -> ControllerFuture {+ Box::pin(async move {+ let config = config_rpc::load_config_with_timeout().await?;+ let input = custom_input(¶ms)?;+ to_json(+ crate::openhuman::mcp::registry::custom::ops::mcp_clients_add_custom(&config, input)+ .await?,+ )+ })+}++fn handle_update_custom(params: Map<String, Value>) -> ControllerFuture {+ Box::pin(async move {+ let config = config_rpc::load_config_with_timeout().await?;+ let server_id = read_required::<String>(¶ms, "server_id")?;+ let input = custom_input(¶ms)?;+ to_json(+ crate::openhuman::mcp::registry::custom::ops::mcp_clients_update_custom(+ &config, server_id, input,+ )+ .await?,+ )+ })+}+fn handle_status(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {