Skip to content

feat(mcp): add project-scoped MCP server configuration support - #3864

Closed
LaelLuo wants to merge 2 commits into
openai:mainfrom
LaelLuo:feat/project-scoped-mcp-config
Closed

LaelLuo wants to merge 2 commits into
openai:mainfrom
LaelLuo:feat/project-scoped-mcp-config

Conversation

@LaelLuo

@LaelLuo LaelLuo commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

Add support for project-scoped MCP server configuration in .codex/config.toml. This allows users to configure different MCP servers per project without polluting global configuration.

Changes:

  • Add --project flag to codex mcp add/remove commands
  • Implement config merging where project configs override globals
  • Update documentation for new project-scoped configuration

This enables fine-grained MCP server management for different projects with different toolchain requirements.

@github-actions

github-actions Bot commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@LaelLuo

LaelLuo commented Sep 18, 2025

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Sep 18, 2025
@LaelLuo
LaelLuo force-pushed the feat/project-scoped-mcp-config branch from 1e8910b to 44695f0 Compare September 18, 2025 17:22
@kellvembarbosa

Copy link
Copy Markdown

This will really have a great positive impact.

@LaelLuo
LaelLuo force-pushed the feat/project-scoped-mcp-config branch from faf8d3a to a5149f1 Compare October 19, 2025 05:18
@LaelLuo
LaelLuo force-pushed the feat/project-scoped-mcp-config branch from a5149f1 to 0ad2803 Compare October 19, 2025 05:22
@etraut-openai

Copy link
Copy Markdown
Contributor

Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them.

We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2025
@openai openai unlocked this conversation Oct 30, 2025
youta7 added a commit to youta7/ta-codex that referenced this pull request Nov 10, 2025
@ilmarioranen

ilmarioranen commented Jan 5, 2026 •

Copy link
Copy Markdown

etraut-openai
commented

Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them.

Uh... codex is awesome but this refusal to add a perfectly reasonable, widely requested and needed feature (supporting per-project MCP configs) makes absolutely no sense. Most of the time each project has a specific set of MCP's that should be in version control and thus shared for all developers/agent envs. Global install might then have some additional MCP's or none.

The sane MCP setup is doable with every other major agentic IDE/CLI harness - why not codex? Not allowing per-project MCP's is a huge foot-gun.

@etraut-openai

Copy link
Copy Markdown
Contributor

@ilmarioranen, if you'd like to see this feature, please upvote it in the issue tracker. We receive a lot of feature requests, and we use input from Codex users to prioritize them.

@Mathf18

Mathf18 commented Jan 9, 2026

Copy link
Copy Markdown

Would also like this featue a lot ! Otherwise, your MCP become a mess realy quick !

@gommo

gommo commented Feb 5, 2026

Copy link
Copy Markdown

Hurry up and add this!

@etraut-openai

Copy link
Copy Markdown
Contributor

@gommo, this was added a couple of months ago. See this documentation about config precedence.

@gommo

gommo commented Feb 5, 2026 via email

Copy link
Copy Markdown

swordfish444 pushed a commit to swordfish444/codex that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants