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
refactor(mcp): route registry and computer handlers through controller entries
Steven Enamakelbaa12b370071
diff --git a/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs b/crates/openhuman-core/src/mcp/registry/schemas/handlers.rsindex bf57cee054..4fb1370ddb 100644--- a/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs+++ b/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs@@ -35,11 +35,7 @@ pub(super) fn handle_registry_get(ctx: DispatchCtx,params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async move {- let config = ctx.load_config().await?;- let qualified_name = parse_registry_get(¶ms)?;- to_json(crate::mcp::registry::ops::mcp_clients_registry_get(&config, qualified_name).await?)- })+ super::registry_get_controller_entry().invoke(ctx, params)}pub(super) fn handle_installed_list(diff --git a/crates/openhuman-core/src/modules/schemas.rs b/crates/openhuman-core/src/modules/schemas.rsindex 3f61b6f478..599def3ef2 100644--- a/crates/openhuman-core/src/modules/schemas.rs+++ b/crates/openhuman-core/src/modules/schemas.rs@@ -283,12 +283,7 @@ fn handle_browser_forget_sites(ctx: DispatchCtx, params: Map<String, Value>) ->}fn handle_computer_status(ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let load = computer_status_load(¶ms);- let config = ctx.load_config().await?;- crate::core::runtime::components::require_config(&config, "computer")?;- controller_value(super::computer::status(&config, load).await)- })+ computer_status_controller_entry().invoke(ctx, params)}fn controller_value(value: impl serde::Serialize) -> Result<Value, String> {