Skip to content

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

fix(mcp): strip auth headers from module request headers

Steven Enamakel335b4f611080
diff --git a/crates/openhuman-core/src/mcp/server/http.rs b/crates/openhuman-core/src/mcp/server/http.rs
index 0777af4431..203b39e775 100644
--- a/crates/openhuman-core/src/mcp/server/http.rs
+++ b/crates/openhuman-core/src/mcp/server/http.rs
@@ -232,6 +232,11 @@ fn check_auth(state: &HttpState, headers: &HeaderMap) -> Option<Response> {
fn request_headers(headers: &HeaderMap) -> Map<String, Value> {
headers_object(headers.iter().filter_map(|(name, value)| {
+ // Authentication is checked by the host. Its credentials are never
+ // protocol input for the module's ordinary bus calls.
+ if matches!(name.as_str(), "authorization" | "proxy-authorization" | "cookie") {
+ return None;
+ }
value
.to_str()
.ok()