Extract MCP environment headers into a local variable (#36047)

GitOrigin-RevId: 1372756e47133f49e64c5308624dc8685c282efb
This commit is contained in:
Alexi Christakis
2026-07-29 23:46:54 +00:00
committed by copyberry
parent 7ec480dda5
commit 410c22b30e
+2 -1
View File
@@ -526,13 +526,14 @@ fn mcp_server_config_for_url(
if let Some(originator) = originator {
http_headers.insert("originator".to_string(), originator.to_string());
}
let env_http_headers = None;
McpServerConfig {
transport: McpServerTransportConfig::StreamableHttp {
url,
bearer_token_env_var: codex_apps_mcp_bearer_token_env_var(),
http_headers: Some(http_headers),
env_http_headers: None,
env_http_headers,
},
auth: auth_mode,
environment_id: codex_config::DEFAULT_MCP_SERVER_ENVIRONMENT_ID.to_string(),