Skip to content

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

fix(host_tests): correct test assertion for tool call response

Steven Enamakelaa75d8110660
diff --git a/src/openhuman/mcp/host_tests.rs b/src/openhuman/mcp/host_tests.rs
index 27314fb213..cebf1139ff 100644
--- a/src/openhuman/mcp/host_tests.rs
+++ b/src/openhuman/mcp/host_tests.rs
@@ -290,15 +290,20 @@ fn two_workspaces_get_two_services() {
}
/// A map holding one service per named workspace.
-fn hosts_for(workspaces: &[&std::path::Path]) -> HashMap<PathBuf, Arc<McpHost>> {
+fn hosts_for(workspaces: &[&std::path::Path]) -> HashMap<PathBuf, super::HostEntry> {
workspaces
.iter()
.map(|workspace| {
let mut config = config_without_docs();
config.workspace_dir = workspace.to_path_buf();
+ let client = super::client_config(&config);
(
workspace.to_path_buf(),
- Arc::new(McpHost::open(&config).expect("the service opens")),
+ super::HostEntry {
+ host: Arc::new(McpHost::open(&config).expect("the service opens")),
+ identity: client.client_identity,
+ proxy: client.proxy,
+ },
)
})
.collect()