Skip to content

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

fix(mcp): gate test module behind mcp feature

Steven Enamakeled94d27a1a6f
diff --git a/crates/openhuman-core/src/mcp/mod.rs b/crates/openhuman-core/src/mcp/mod.rs
index 72f1c76d2b..62c8746a36 100644
--- a/crates/openhuman-core/src/mcp/mod.rs
+++ b/crates/openhuman-core/src/mcp/mod.rs
@@ -65,7 +65,7 @@ pub fn start(config: &crate::config::Config) {
#[cfg(feature = "mcp")]
pub(crate) mod module_client;
-#[cfg(test)]
+#[cfg(all(test, feature = "mcp"))]
#[path = "test_module_port.rs"]
mod test_module_port;