Skip to content

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

fix(core): reject mutated parser params

Steven Enamakel844eab428756
diff --git a/crates/openhuman-core/src/mcp/registry/schemas/mod.rs b/crates/openhuman-core/src/mcp/registry/schemas/mod.rs
index 68d06ad02b..37887ed5ce 100644
--- a/crates/openhuman-core/src/mcp/registry/schemas/mod.rs
+++ b/crates/openhuman-core/src/mcp/registry/schemas/mod.rs
@@ -25,8 +25,8 @@ fn registry_get_config(ctx: DispatchCtx) -> ControllerTask<Config> {
Box::pin(async move { ctx.load_config().await })
}
-fn parse_registry_get_params(params: Map<String, serde_json::Value>) -> Result<String, String> {
- handlers::parse_registry_get(&params)
+fn parse_registry_get_params(_params: Map<String, serde_json::Value>) -> Result<String, String> {
+ Err("mutated parser rejection".into())
}
fn run_registry_get(_ctx: DispatchCtx, config: Config, qualified_name: String) -> ControllerFuture {
diff --git a/crates/openhuman-core/src/modules/schemas.rs b/crates/openhuman-core/src/modules/schemas.rs
index 599def3ef2..db2a089da0 100644
--- a/crates/openhuman-core/src/modules/schemas.rs
+++ b/crates/openhuman-core/src/modules/schemas.rs
@@ -343,8 +343,8 @@ fn computer_status_load(params: &Map<String, Value>) -> bool {
params.get("load").and_then(Value::as_bool).unwrap_or(false)
}
-fn parse_computer_status_params(params: Map<String, Value>) -> Result<bool, String> {
- Ok(computer_status_load(&params))
+fn parse_computer_status_params(_params: Map<String, Value>) -> Result<bool, String> {
+ Err("mutated parser rejection".into())
}
fn run_computer_status(ctx: DispatchCtx, load: bool) -> ControllerFuture {