Skip to content

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

test(mcp): report TinyMCP module status on failure

Steven Enamakelda27efa514aa
diff --git a/tests/mcp_registry_e2e.rs b/tests/mcp_registry_e2e.rs
index 3597611c2a..8a010df383 100644
--- a/tests/mcp_registry_e2e.rs
+++ b/tests/mcp_registry_e2e.rs
@@ -40,9 +40,15 @@ async fn install_server(config: &Config, name: &str, server: Value) -> String {
let document = json!({
"mcpServers": servers
});
- openhuman_core::mcp::registry::config_ops::mcp_clients_config_set(config, document)
- .await
- .expect("apply mcp.json through the module");
+ let applied =
+ openhuman_core::mcp::registry::config_ops::mcp_clients_config_set(config, document).await;
+ if let Err(error) = &applied {
+ let module_status = openhuman_core::modules::ops::list(config)
+ .into_iter()
+ .find(|module| module.id == "tinymcp");
+ panic!("apply mcp.json through the module: {error}; status: {module_status:?}");
+ }
+ applied.expect("apply mcp.json through the module");
let status = openhuman_core::mcp::registry::ops::mcp_clients_status(config)
.await
.expect("list the module-owned installs");