Repository navigation
Skip plugin MCP filtering when no allowlists are configured - #35280
Conversation
## 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
53c93d6 to
4c43465
Compare
There was a problem hiding this comment.
💡 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".
| if !requirements | ||
| .value | ||
| .values() | ||
| .any(|plugin| plugin.mcp_servers.is_some()) | ||
| { |
There was a problem hiding this comment.
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 👍 / 👎.
Skip plugin MCP filtering when no allowlists are configured
What changed
mcp_servers.mcp_serversallowlist as deny-all.Testing
Added coverage for both absent and explicitly empty plugin MCP allowlists.