Add Agent Plugins MCP config parsing - #36796
Merged
copyberry[bot] merged 1 commit intoAug 3, 2026
Merged
Conversation
## What changed - Add `parse_agent_plugin_mcp_config` to translate Agent Plugins v1 `mcp.json` files into Codex MCP server configuration. - Normalize `stdio` and streamable HTTP transports, including `PLUGIN_ROOT` and `PLUGIN_DATA` expansion, contained plugin paths, secure endpoint validation, and filtering of client-owned HTTP headers. - Keep valid sibling servers when another server is invalid, while returning per-server parse errors. - Preserve UTF-8 HTTP header values when forwarding streamable HTTP protocol headers. ## Testing - Cover transport mapping, placeholder expansion, path containment, schema and field validation, per-server errors, platform-specific environment handling, and UTF-8 headers. GitOrigin-RevId: ed4ab0fcf495afbb381ce48beb93989629444c56
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/ed4ab0fcf495afbb381ce48beb93989629444c56
branch
from
August 3, 2026 20:38
2e94089 to
bd12b3a
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/ed4ab0fcf495afbb381ce48beb93989629444c56
branch
August 3, 2026 20:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Agent Plugins MCP config parsing
What changed
parse_agent_plugin_mcp_configto translate Agent Plugins v1mcp.jsonfiles into Codex MCP server configuration.stdioand streamable HTTP transports, includingPLUGIN_ROOTandPLUGIN_DATAexpansion, contained plugin paths, secure endpoint validation, and filtering of client-owned HTTP headers.Testing