The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style(mcp): reformat header filtering and test setup
Steven Enamakel590bba73024a
diff --git a/crates/openhuman-core/src/mcp/server/http.rs b/crates/openhuman-core/src/mcp/server/http.rsindex 203b39e775..7c3a286666 100644--- a/crates/openhuman-core/src/mcp/server/http.rs+++ b/crates/openhuman-core/src/mcp/server/http.rs@@ -234,7 +234,10 @@ 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") {+ if matches!(+ name.as_str(),+ "authorization" | "proxy-authorization" | "cookie"+ ) {return None;}valuediff --git a/crates/openhuman-core/src/mcp/server/http_tests.rs b/crates/openhuman-core/src/mcp/server/http_tests.rsindex b4a557bc52..de274e27b6 100644--- a/crates/openhuman-core/src/mcp/server/http_tests.rs+++ b/crates/openhuman-core/src/mcp/server/http_tests.rs@@ -72,11 +72,20 @@ async fn invalid_module_http_status_fails_closed_as_internal_server_error() {#[test]fn module_protocol_headers_exclude_host_authentication_secrets() {let mut headers = HeaderMap::new();- headers.insert(AUTHORIZATION, HeaderValue::from_static("Bearer private-host-token"));- headers.insert("proxy-authorization", HeaderValue::from_static("Basic private-proxy-token"));+ headers.insert(+ AUTHORIZATION,+ HeaderValue::from_static("Bearer private-host-token"),+ );+ headers.insert(+ "proxy-authorization",+ HeaderValue::from_static("Basic private-proxy-token"),+ );headers.insert("cookie", HeaderValue::from_static("session=private-cookie"));headers.insert(HEADER_SESSION_ID, HeaderValue::from_static("session-7"));- headers.insert("mcp-protocol-version", HeaderValue::from_static("2025-11-25"));+ headers.insert(+ "mcp-protocol-version",+ HeaderValue::from_static("2025-11-25"),+ );headers.insert("accept", HeaderValue::from_static("application/json"));let forwarded = request_headers(&headers);assert!(!forwarded.contains_key("authorization"));