Skip to content

Add Agent Plugins MCP config parsing - #36796

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ed4ab0fcf495afbb381ce48beb93989629444c56
Aug 3, 2026
Merged

Add Agent Plugins MCP config parsing#36796
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ed4ab0fcf495afbb381ce48beb93989629444c56

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 3, 2026

Copy link
Copy Markdown

Add Agent Plugins MCP config parsing

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ed4ab0fcf495afbb381ce48beb93989629444c56 branch from 2e94089 to bd12b3a Compare August 3, 2026 20:38
@copyberry
copyberry Bot merged commit bd12b3a into main Aug 3, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ed4ab0fcf495afbb381ce48beb93989629444c56 branch August 3, 2026 20:39
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant