Skip to content

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

fix(mcp): close session cleanup block and register module

Steven Enamakel1e49e36d6061
diff --git a/crates/openhuman-core/src/mcp/server/http.rs b/crates/openhuman-core/src/mcp/server/http.rs
index 410d8e79fe..c3cefa4dc0 100644
--- a/crates/openhuman-core/src/mcp/server/http.rs
+++ b/crates/openhuman-core/src/mcp/server/http.rs
@@ -194,6 +194,7 @@ async fn http_session_request(
if let Some(requested_session_id) = requested_session_id {
state.sessions.lock().await.remove(&requested_session_id);
}
+ }
response
}
diff --git a/crates/openhuman-core/src/mcp/server/mod.rs b/crates/openhuman-core/src/mcp/server/mod.rs
index b161fef8b2..7a6452cf02 100644
--- a/crates/openhuman-core/src/mcp/server/mod.rs
+++ b/crates/openhuman-core/src/mcp/server/mod.rs
@@ -34,6 +34,8 @@ mod http;
#[cfg(feature = "mcp")]
mod local;
#[cfg(feature = "mcp")]
+mod module;
+#[cfg(feature = "mcp")]
mod resources;
#[cfg(feature = "mcp")]
mod stdio;