Skip to content

Skip plugin MCP filtering when no allowlists are configured - #35280

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/80bb9aa6bbd779d669c573f63681dc46019b668c
Jul 25, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Skip plugin MCP filtering when no allowlists are configured

What changed

  • Leave plugin MCP servers unchanged when every plugin requirement omits
    mcp_servers.
  • Continue treating an explicitly empty mcp_servers allowlist as deny-all.

Testing

Added coverage for both absent and explicitly empty plugin MCP allowlists.

## What changed

- Leave plugin MCP servers unchanged when every plugin requirement omits
  `mcp_servers`.
- Continue treating an explicitly empty `mcp_servers` allowlist as deny-all.

## Testing

Added coverage for both absent and explicitly empty plugin MCP allowlists.

GitOrigin-RevId: 80bb9aa6bbd779d669c573f63681dc46019b668c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/80bb9aa6bbd779d669c573f63681dc46019b668c branch from 53c93d6 to 4c43465 Compare July 25, 2026 02:09
@copyberry
copyberry Bot merged commit 4c43465 into main Jul 25, 2026
14 of 32 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53c93d62c1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread codex-rs/core/src/config/mod.rs Outdated
Comment on lines +1998 to +2002
if !requirements
.value
.values()
.any(|plugin| plugin.mcp_servers.is_some())
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add integration coverage for plugin MCP exposure

When managed plugin requirements are present but all omit mcp_servers, this branch changes which plugin MCP tools the agent exposes, but the added tests call only the private filter and cannot catch regressions in managed-config parsing, plugin discovery, Config::to_mcp_config, or final tool exposure. Add a core/suite test using test_codex that loads this requirements shape and verifies that the plugin MCP tool remains available or invokable.

AGENTS.md reference: AGENTS.md:L112-L121

Useful? React with 👍 / 👎.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/80bb9aa6bbd779d669c573f63681dc46019b668c branch July 25, 2026 02:11
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 25, 2026

This branch was previously deployed

1 inactive deployment
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.