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
fix(test): update MCP test configs to use nested server struct
Steven Enamakel4cae2d13fd9a
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rsindex 06f7f3082c..7e7cc984ad 100644--- a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs@@ -69,14 +69,9 @@ fn config(..Default::default()};config.gitbooks.enabled = false;- let mut server = McpServerConfig {- name: "ticktick".into(),- endpoint: endpoint.into(),- auth: McpAuthConfig::BearerToken {+ let mut server = McpServerConfig { server: tinymcp_bus::McpServerConfig { name: "ticktick".into(), endpoint: endpoint.into(), auth: McpAuthConfig::BearerToken {token: SECRET.into(),- },- ..Default::default()- };+ }, ..Default::default() }, ..Default::default() };customize(&mut server);config.mcp_client.servers.push(server);configdiff --git a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rsindex 2a0971f7f0..33ba331ff2 100644--- a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs@@ -14,21 +14,7 @@ fn test_registry() -> Arc<McpServerRegistry> {fn registry_with(endpoint: &str, auth: crate::config::McpAuthConfig) -> Arc<McpServerRegistry> {let mut config = Config::default();config.gitbooks.enabled = false;- config.mcp_client.servers.push(McpServerConfig {- name: "docs".into(),- endpoint: endpoint.into(),- command: String::new(),- args: Vec::new(),- env: std::collections::HashMap::new(),- cwd: None,- description: Some("Docs MCP".into()),- enabled: true,- allowed_tools: Vec::new(),- disallowed_tools: Vec::new(),- timeout_secs: 30,- auth,- ..Default::default()- });+ config.mcp_client.servers.push(McpServerConfig { server: tinymcp_bus::McpServerConfig { name: "docs".into(), endpoint: endpoint.into(), command: String::new(), args: Vec::new(), env: std::collections::HashMap::new(), cwd: None, description: Some("Docs MCP".into()), enabled: true, allowed_tools: Vec::new(), disallowed_tools: Vec::new(), timeout_secs: 30, auth, ..Default::default() }, ..Default::default() });// Through the host conversion, so the test builds the registry the// same way the application does.Arc::new(crate::mcp::host::static_registry(&config))