Skip to content

Forward local env vars to Agent Plugin MCP servers - #40363

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/843e1232a084fa5f571fe56e07266995b87fd53d
Aug 24, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/843e1232a084fa5f571fe56e07266995b87fd53d

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Forward local env vars to Agent Plugin MCP servers

What changed

  • Apply local env_vars declarations from .codex-plugin/plugin.json to matching stdio servers loaded from an Agent Plugin manifest.
  • Replace matching ${NAME} entries in the portable server environment with host environment forwarding while preserving the portable command, arguments, and unrelated servers.
  • Ignore remote-sourced environment variables and support both inline and file-based Codex MCP declarations.

Testing

  • Cover matching-server filtering, local and remote sources, inline declarations, and an end-to-end PATH forwarding round trip.

## What changed

- Apply local `env_vars` declarations from `.codex-plugin/plugin.json` to matching stdio servers loaded from an Agent Plugin manifest.
- Replace matching `${NAME}` entries in the portable server environment with host environment forwarding while preserving the portable command, arguments, and unrelated servers.
- Ignore remote-sourced environment variables and support both inline and file-based Codex MCP declarations.

## Testing

- Cover matching-server filtering, local and remote sources, inline declarations, and an end-to-end `PATH` forwarding round trip.

GitOrigin-RevId: 843e1232a084fa5f571fe56e07266995b87fd53d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/843e1232a084fa5f571fe56e07266995b87fd53d branch from dc7521d to 40b7560 Compare August 24, 2026 08:44
@copyberry
copyberry Bot merged commit 40b7560 into main Aug 24, 2026
27 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/843e1232a084fa5f571fe56e07266995b87fd53d branch August 24, 2026 08:45
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 24, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 40b75601 Deployed Aug 24, 2026 by Damaskuuus via Translate non-English issue #9228
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.

5 participants