xl-openai
379cb68444
Add dynamic HTTP header helpers for MCP servers ( #38245 )
...
## What changed
- Add `http_headers_helper` configuration for local streamable HTTP MCP servers. The configured shell command runs once per connection and returns a JSON object of headers that is cached across requests.
- Apply helper headers to MCP startup and OAuth flows while restricting them to the server origin, stopping redirects, rejecting reserved or duplicate headers, and enforcing output and execution limits.
- Reject helpers for remote or managed-disabled servers, use the local environment working directory, and redact helper commands from `codex mcp list` and `codex mcp get` output.
## Testing
- Cover configuration validation, helper lifecycle and output parsing, origin isolation, OAuth discovery and token refresh, managed requirements, environment selection, and CLI redaction.
GitOrigin-RevId: 84e0e26ce75520b0869d37c72b1678e033bd6818
2026-08-12 20:36:32 +00:00
..
2026-08-05 18:09:26 +00:00
2026-06-25 18:15:48 -07:00
2026-07-28 05:17:25 +00:00
2026-07-29 17:38:20 +00:00
2026-08-10 22:39:29 +00:00
2026-08-04 15:23:43 +00:00
2026-07-09 00:17:38 +00:00
2026-07-22 16:30:12 +00:00
2026-07-24 04:37:01 +00:00
2026-07-08 00:15:49 +00:00
2026-08-10 01:44:30 +00:00
2026-07-22 16:30:12 +00:00
2026-08-12 12:15:47 +00:00
2026-05-28 14:54:39 -07:00
2026-07-06 10:17:15 -07:00
2026-08-04 15:23:43 +00:00
2026-07-30 16:44:18 +00:00
2026-07-22 16:30:12 +00:00
2026-07-15 05:21:13 +00:00
2026-07-08 00:15:49 +00:00
2026-07-14 01:49:16 +00:00
2026-06-27 19:34:10 +00:00
2026-08-11 18:35:03 +00:00
2026-08-10 11:10:01 +00:00
2026-08-04 15:23:43 +00:00
2026-07-22 16:30:12 +00:00
2026-08-10 00:12:01 +00:00
2026-07-31 16:17:44 +00:00
2026-07-08 00:15:49 +00:00
2026-08-11 19:30:12 +00:00
2026-08-08 04:57:06 +00:00
2026-07-15 20:59:21 +00:00
2026-08-11 15:40:52 +00:00
2026-08-04 15:23:43 +00:00
2026-07-23 15:32:36 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-10 11:10:01 +00:00
2026-08-10 18:20:12 +00:00
2026-08-12 20:36:32 +00:00
2026-08-10 18:20:12 +00:00
2026-07-23 19:19:35 +00:00
2026-08-07 23:43:14 +00:00
2026-08-07 23:43:14 +00:00
2026-08-07 11:26:01 +00:00
2026-08-04 17:55:28 +00:00
2026-08-06 10:27:33 +00:00
2026-08-07 00:28:32 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-12 13:33:01 +00:00
2026-08-12 13:33:01 +00:00
2026-08-10 22:39:29 +00:00
2026-08-04 16:16:30 +00:00
2026-07-29 01:16:29 +00:00
2026-08-12 13:33:01 +00:00
2026-08-08 16:58:26 +00:00
2026-07-22 16:30:12 +00:00
2026-07-30 21:49:53 +00:00
2026-08-01 01:17:26 +00:00
2026-07-28 22:53:33 +00:00
2026-07-29 22:00:20 +00:00
2026-08-10 23:32:42 +00:00
2026-07-22 16:30:12 +00:00
2026-08-01 00:38:10 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-07 01:26:42 +00:00
2026-07-22 16:30:12 +00:00
2026-08-12 10:34:25 +00:00
2026-07-30 21:12:41 +00:00
2026-08-07 18:38:24 +00:00
2026-07-22 16:30:12 +00:00
2026-08-11 10:20:54 +00:00
2026-07-30 16:44:18 +00:00
2026-08-06 02:30:18 +00:00
2026-07-23 23:18:06 +00:00
2026-08-11 19:30:12 +00:00
2026-08-12 20:05:49 +00:00
2026-08-10 19:26:52 +00:00
2026-07-22 16:30:12 +00:00
2026-07-23 19:19:35 +00:00
2026-08-10 23:32:42 +00:00
2026-05-12 18:40:53 -07:00
2026-08-11 03:35:45 +00:00
2026-08-11 15:40:52 +00:00
2026-07-22 16:30:12 +00:00
2026-08-10 23:32:42 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-04 15:23:43 +00:00
2026-08-10 23:32:42 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-04 13:16:58 +00:00
2026-07-22 16:30:12 +00:00
2026-08-04 20:10:31 +00:00
2026-07-23 00:02:15 +00:00
2026-07-08 00:15:49 +00:00