Skip to content

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

fix(app): reach widget origin rules through tinymcp now that core is not a direct dependency (#7202)

oxoxDev0847f2755aac
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index 154acdccd5..8df67e1e21 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -70,6 +70,7 @@ serde_json = "1"
# `openhuman-rpc`'s own: `http-client` (the relay client), `server` (the
# embedded JSON-RPC server and `host::desktop`) and `jev` (the Jev-backed
# `tool_search` ranker the product ships).
+tinymcp = { path = "../../vendor/tinymcp/crates/tinymcp", default-features = false, features = ["ui"] }
openhuman-rpc = { path = "../openhuman-rpc", default-features = false, features = [
"os-keyring",
"http-client",
diff --git a/crates/openhuman-app/src/widget_scheme.rs b/crates/openhuman-app/src/widget_scheme.rs
index deda9a40cf..9136b6b2c4 100644
--- a/crates/openhuman-app/src/widget_scheme.rs
+++ b/crates/openhuman-app/src/widget_scheme.rs
@@ -34,7 +34,7 @@ fn declared_origins(query: &str) -> (Vec<String>, Vec<String>) {
}
}
let reduce = |items: Vec<Value>| {
- openhuman_core::mcp::ui::resolve::https_origins(Some(&Value::Array(items)))
+ tinymcp::ui::https_origins(Some(&Value::Array(items)))
};
(reduce(connect), reduce(resource))
}