mirror of
https://github.com/openai/codex.git
synced 2026-10-21 04:14:07 +00:00
Extract MCP environment headers into a local variable (#36047)
GitOrigin-RevId: 1372756e47133f49e64c5308624dc8685c282efb
This commit is contained in:
committed by
copyberry
parent
7ec480dda5
commit
410c22b30e
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user