Skip to content

Scope agent MCP metadata to a host-selected plugin registration - #58378

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/eaa44e17b29aa0bdec6f6ed9faa86b8fc931faad
Oct 30, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Scope agent MCP metadata to a host-selected plugin registration

What changed

Add AgentMcpMetadataRecipient as a thread extension that lets the host select which MCP plugin registration receives x-codex-root-turn-id and x-codex-cyber-access-program in tool-call metadata.

Require an exact match on the plugin ID, installed root, server name, and transport configuration in the local MCP environment. Omit both keys without host opt-in or when the registration does not match, including same-name user overrides. Send JSON null for unset values on matching registrations.

Testing

Add unit tests for registration matching and integration coverage for host opt-in, same-name user overrides, and an unset access program.

## What changed

Add `AgentMcpMetadataRecipient` as a thread extension that lets the host select which MCP plugin registration receives `x-codex-root-turn-id` and `x-codex-cyber-access-program` in tool-call metadata.

Require an exact match on the plugin ID, installed root, server name, and transport configuration in the `local` MCP environment. Omit both keys without host opt-in or when the registration does not match, including same-name user overrides. Send JSON null for unset values on matching registrations.

## Testing

Add unit tests for registration matching and integration coverage for host opt-in, same-name user overrides, and an unset access program.

GitOrigin-RevId: eaa44e17b29aa0bdec6f6ed9faa86b8fc931faad
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/eaa44e17b29aa0bdec6f6ed9faa86b8fc931faad branch from cc2156b to 483d98a Compare October 30, 2026 16:00
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-30T16:00:39.321903Z cc2156b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 483d98a into main Oct 30, 2026
18 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/eaa44e17b29aa0bdec6f6ed9faa86b8fc931faad branch October 30, 2026 16:00
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 483d98a4 Deployed Oct 30, 2026 by mkasanm via Identify potential duplicates (open issues fallback) #60260
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.

2 participants