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
chore(mcp): move tinymcp to dev-dependencies
Steven Enamakel22caad34e28d
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex 8b49c96170..e659cf201b 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -214,39 +214,6 @@ tinyconnectors-bus = { path = "../../vendor/tinyconnectors/crates/tinyconnectors-# tinymcp — the Model Context Protocol client, extracted out of this tree-# (https://github.com/tinyhumansai/tinymcp). Owns both transports, the static-# config-declared server set, the dynamic registry with its store, supervisor-# and OAuth, and the write-audit log. What stays here is the host half: the RPC-# surface, the agent-facing tools, and the prompt-injection scan over remote-# tool definitions, which is host policy.-#-# `tinymcp-bus` is the wire contract — payload types and member names, with no-# transport and no runtime. The `schemars` feature is on because this crate-# generates a settings schema for the desktop application from those types-# rather than from a hand-kept copy.-#-# `tinymcp` v0.9.0 publishes contract 1.13, including module-owned server-# protocol operations and HTTP session admission. The native registry entry-# pins the same release and its verified platform digests. This host is moving-# its server transport adapter to those bus operations; client adapter callers-# remain a separate cutover slice.-#-# Correcting what this comment used to promise: dropping the path dependency does-# NOT take reqwest/rusqlite with it. Measured in the kernel profile, `rusqlite` has-# six parents and `reqwest` ten, so `scripts/dep-sim.py --cut tinymcp` projects the-# entire shed at -1 package / -1 name / 0 native builds — the `tinymcp` package and-# nothing beneath it. The boundary buys compilation isolation, not a dependency shed.-#-# After cloning: `git submodule update --init vendor/tinymcp`.-# `default-features = false` drops the TinyBus adapter: this build calls the-# 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,# the config schema, controller metadata and relay frames. UNCONDITIONAL — `DomainEvent` embeds@@ -556,6 +523,11 @@ windows-sys = { version = "0.61", features = [tokio-tungstenite = { version = "0.29", default-features = false, features = ["connect", "handshake", "rustls-tls-webpki-roots"] }[dev-dependencies]+# The product calls TinyMCP only over `tinymcp-bus`. A few local fixtures still+# exercise its standalone HTTP client while they are migrated to module-backed+# tests; keeping this dev-only prevents the implementation crate entering the+# shipped dependency graph.+tinymcp = { path = "../../vendor/tinymcp/crates/tinymcp", default-features = false, features = ["rustls-tls"] }# The TinyMemory reference engine (an in-memory `MemoryEngine`) and the# behavioural suite every engine must pass. Memory unit tests bind it as the# engine instead of talking to CortexDB.@@ -671,9 +643,7 @@ default = ["media", "skills", "flows", "mcp", "channels", "http-server", "schedu# stay compiled in BOTH builds, since ~10 always-on domains construct them.# Likewise `inference::http::types` and `EXTERNAL_OPENAI_COMPAT_PROVIDER` stay# compiled for the server's auth policy.-# TinyMCP HTTP serving is kept optional with the rest of this server surface.-# Keep vendor/tinymcp pinned to a revision that defines `server-http`.-http-server = ["dep:axum", "tinymcp/server-http"]+http-server = ["dep:axum"]# The public inference gate is retained for host feature compatibility.# Native permission probes execute through the TinyComputer module.inference = ["modules"]diff --git a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rsindex 3e79cc91ee..98586a1294 100644--- a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs+++ b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs@@ -140,26 +140,17 @@ fn report_error_or_expected_demotes_codex_auth_unavailable() {/// preventable user-state (the server needs OAuth sign-in), already handled/// by the `needs_auth` UX (#3733 / #3719), so it must classify as/// `McpServerNeedsAuth` and stay out of Sentry. The canonical body comes-/// straight from `tinymcp::Error::Unauthorized`'s `Display` impl (both the-/// bare and `resource metadata:` variants), plus the+/// using the public TinyMCP unauthorized message shape (both the bare and+/// `resource metadata:` variants), plus the/// `mcp_clients_connect`-prefixed RPC re-report shape that actually reaches/// the dispatcher.#[test]fn classifies_mcp_connect_401_as_needs_auth() {- // The 401 is a variant of `tinymcp`'s error now rather than a- // standalone type. What this test pins is unchanged: the *wording* the- // classifier keys on, which is what reaches the dispatcher.- let bare = tinymcp::Error::Unauthorized {- endpoint: "https://youtube.run.tools".to_string(),- resource_metadata: None,- };- let with_meta = tinymcp::Error::Unauthorized {- endpoint: "https://youtube.run.tools".to_string(),- resource_metadata: Some(- "https://youtube.run.tools/.well-known/oauth-protected-resource".to_string(),- ),- };+ // Pin the wording that reaches the classifier without linking the+ // implementation crate into host tests.+ let bare = "MCP server at https://youtube.run.tools requires authentication";+ let with_meta = "MCP server at https://youtube.run.tools requires authentication (resource metadata: https://youtube.run.tools/.well-known/oauth-protected-resource)";for msg in [bare.to_string(),with_meta.to_string(),diff --git a/crates/openhuman-core/src/mcp/registry/ops_tests.rs b/crates/openhuman-core/src/mcp/registry/ops_tests.rsindex ec33a49483..2f9e5496e6 100644--- a/crates/openhuman-core/src/mcp/registry/ops_tests.rs+++ b/crates/openhuman-core/src/mcp/registry/ops_tests.rs@@ -185,11 +185,11 @@ async fn agent_refusal_names_no_rpc_method() {/// belt. The read-only planner has no `mcp_registry_connect`.#[test]fn refusals_name_only_tools_on_every_listing_belt() {- let install = tinymcp::ConnStatus {+ let install = tinymcp_bus::ConnStatus {server_id: "srv-1".into(),qualified_name: QUALIFIED.into(),display_name: "uuid".into(),- status: tinymcp::ServerStatus::Disconnected,+ status: tinymcp_bus::ServerStatus::Disconnected,tool_count: 0,last_error: None,auth_hint: None,@@ -312,11 +312,11 @@ async fn a_qualified_name_lists_the_tools_of_its_connected_install() {#[test]fn a_registry_name_installed_twice_is_refused_with_both_ids() {- let install = |server_id: &str| tinymcp::ConnStatus {+ let install = |server_id: &str| tinymcp_bus::ConnStatus {server_id: server_id.into(),qualified_name: QUALIFIED.into(),display_name: "uuid".into(),- status: tinymcp::ServerStatus::Disconnected,+ status: tinymcp_bus::ServerStatus::Disconnected,tool_count: 0,last_error: None,auth_hint: None,