Skip to content

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

fix(embed): initialize owned MCP configuration directly

Steven Enamakel9a88f6b7c121
diff --git a/Cargo.lock b/Cargo.lock
index 08439e6746..c5e3700b02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4183,6 +4183,7 @@ dependencies = [
"serde_json",
"tempfile",
"thiserror 2.0.20",
+ "tinymcp-bus",
"tokio",
"tracing-subscriber",
"url",
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index 622910935c..b53c955ad1 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -4370,6 +4370,7 @@ dependencies = [
"serde_json",
"tempfile",
"thiserror 2.0.20",
+ "tinymcp-bus",
"tokio",
"url",
"uuid",
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index f334289975..29802d3cb9 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -40,6 +40,8 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
tempfile = "3"
thiserror = "2"
+# Construct the owned wire config directly; core adds host disclosure policy.
+tinymcp-bus = { path = "../../vendor/tinymcp/crates/tinymcp-bus" }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }
url = "2"
uuid = { version = "1", features = ["v4"] }
diff --git a/crates/openhuman-embed/src/harness/mcp.rs b/crates/openhuman-embed/src/harness/mcp.rs
index b2885e1975..9d77c08cb9 100644
--- a/crates/openhuman-embed/src/harness/mcp.rs
+++ b/crates/openhuman-embed/src/harness/mcp.rs
@@ -102,19 +102,21 @@ impl McpServer {
I: IntoIterator<Item = S>,
S: Into<String>,
{
- let mut config = McpServerConfig::default();
- config.name = name.into();
- config.command = command.into();
- config.args = args.into_iter().map(Into::into).collect();
- Self(config)
+ Self(McpServerConfig::from(tinymcp_bus::McpServerConfig {
+ name: name.into(),
+ command: command.into(),
+ args: args.into_iter().map(Into::into).collect(),
+ ..tinymcp_bus::McpServerConfig::default()
+ }))
}
/// A remote server over Streamable HTTP.
pub fn http(name: impl Into<String>, endpoint: impl Into<String>) -> Self {
- let mut config = McpServerConfig::default();
- config.name = name.into();
- config.endpoint = endpoint.into();
- Self(config)
+ Self(McpServerConfig::from(tinymcp_bus::McpServerConfig {
+ name: name.into(),
+ endpoint: endpoint.into(),
+ ..tinymcp_bus::McpServerConfig::default()
+ }))
}
/// Environment variables for a stdio server. MCP stdio auth is normally