Skip to content

Accept explicit contribution context for MCP runtime configuration - #61283

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/04ea2c8951187d9014867f0020223b6a7dd94d8d
Nov 13, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Accept explicit contribution context for MCP runtime configuration

What changed

  • Make McpManager::runtime_config accept McpServerContributionContext and honor its originator, selected environments, and disabled plugin IDs.
  • Add McpServerContributionContext::for_host to carry thread initialization data, originator, and session source without live extension state or discovery.
  • Pass explicit global contexts from threadless discovery and control paths.

Testing

Extend the thread manager test to cover host-only contribution identity, originator headers, and server restrictions for disabled plugins and pending environments.

…61283)

## What changed

- Make `McpManager::runtime_config` accept `McpServerContributionContext` and honor its originator, selected environments, and disabled plugin IDs.
- Add `McpServerContributionContext::for_host` to carry thread initialization data, originator, and session source without live extension state or discovery.
- Pass explicit global contexts from threadless discovery and control paths.

## Testing

Extend the thread manager test to cover host-only contribution identity, originator headers, and server restrictions for disabled plugins and pending environments.

GitOrigin-RevId: 04ea2c8951187d9014867f0020223b6a7dd94d8d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/04ea2c8951187d9014867f0020223b6a7dd94d8d branch from 7151a18 to c899e21 Compare November 13, 2026 07:36
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-13T07:36:09.703720Z 7151a18 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 c899e21 into main Nov 13, 2026
11 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/04ea2c8951187d9014867f0020223b6a7dd94d8d branch November 13, 2026 07:36
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — c899e21c Deployed Nov 13, 2026 by Rilkener via Identify potential duplicates (open issues fallback) #63281
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.

3 participants