Skip to content

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

feat(core): wire tinymcp tools feature and patch tinytools

Steven Enamakelaedba52c5ac2
diff --git a/Cargo.lock b/Cargo.lock
index 3733963da8..68f362f559 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6665,6 +6665,8 @@ dependencies = [
name = "tinymcp"
version = "0.3.4"
dependencies = [
+ "anyhow",
+ "async-trait",
"base64 0.23.1",
"dirs 7.0.0",
"futures-util",
@@ -6676,6 +6678,7 @@ dependencies = [
"sha2 0.11.0",
"thiserror 2.0.20",
"tinymcp-bus",
+ "tinytools 0.4.1",
"tokio",
"tracing",
"uuid",
diff --git a/Cargo.toml b/Cargo.toml
index 36a246f3f9..ac8739a1f5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,6 +43,13 @@ openhuman-tinyhumans = { path = "crates/openhuman-tinyhumans", default-features
[patch."https://github.com/tinyhumansai/tinymemory"]
tinymemory-api = { path = "vendor/tinymemory/crates/tinymemory-api" }
+[patch."https://github.com/tinyhumansai/tinytools"]
+# tinymcp's `tools` feature names tinytools by git rev so it can be built on its
+# own. Redirect it to the copy tinyagents vendors — the one the harness and
+# every host tool link — so there is exactly one `tinytools` package and one
+# `Tool` trait. Without this, MCP tools would not satisfy the harness's trait.
+tinytools = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools" }
+
[patch."https://github.com/tinyhumansai/tinyinference"]
tinyinference-core = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
tinyinference-embeddings = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index 60933c30f4..5e6d1f3972 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -319,6 +319,13 @@ e2e-test-support = ["openhuman_core/e2e-test-support"]
[patch."https://github.com/tinyhumansai/tinymemory"]
tinymemory-api = { path = "../../vendor/tinymemory/crates/tinymemory-api" }
+[patch."https://github.com/tinyhumansai/tinytools"]
+# tinymcp's `tools` feature names tinytools by git rev so it can be built on its
+# own. Redirect it to the copy tinyagents vendors — the one the harness and
+# every host tool link — so there is exactly one `tinytools` package and one
+# `Tool` trait. Without this, MCP tools would not satisfy the harness's trait.
+tinytools = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools" }
+
[patch."https://github.com/tinyhumansai/tinyinference"]
# Crates in this world name tinyinference by git rev; without this the shell
# world resolves TWO copies of the same types. Mirrors the root Cargo.toml.
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 41cf8ef341..1ad65a8866 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -294,6 +294,9 @@ tinymemory-sources = { path = "../../vendor/tinymemory/crates/tinymemory-sources
# library directly and has no use for a bus inside it.
tinymcp = { path = "../../vendor/tinymcp/crates/tinymcp", default-features = false, features = [
"rustls-tls",
+ # Server tools as `tinytools::Tool`s over the persistent tool cache. Needs
+ # the root `[patch]` that redirects tinymcp's git tinytools to ours.
+ "tools",
] }
tinymcp-bus = { path = "../../vendor/tinymcp/crates/tinymcp-bus", features = ["schemars"] }
# The transport-free channel vocabulary: inbound envelopes, outbound intents,
diff --git a/vendor/tinymcp b/vendor/tinymcp
index 418f9c079b..06776cd04a 160000
--- a/vendor/tinymcp
+++ b/vendor/tinymcp
@@ -1 +1 @@
-Subproject commit 418f9c079b90e4466eacc207aebcc9f486bbf47f
+Subproject commit 06776cd04a4e3668f15a2e089354e497184cbab1