Allow MCP per each project?
Resolved 💬 12 comments Opened Sep 7, 2025 by alvinycheung Closed Nov 11, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
Do we have to set the ~/.codex/config.toml at the user level?
It'd be more useful if we can define MCP per each project instead.
Suggestion:
Allow creating .codex/config.toml per project
Are you interested in implementing this feature?
_No response_
Additional information
_No response_
12 Comments
Would love to see this. I've created an agent network, and I like to give them usernames. I also don't always want the same MCP server for every project. However having a global setting is great for common MCP servers, so don't remove that feature.
NEED
This worked for me as a workaround:
Thanks! I was looking one last time before doing something like that.
I really hope the config story improves here soon.
upvoting this, why is this not a default feature?
Yes!
Thanks for the suggestion. We're using https://github.com/openai/codex/issues/3266 to track this issue. I'm going to close this one to reduce duplication.
@etraut-openai You closed or linked to the wrong issue I guess?
Good catch. Sorry about that!
I submitted PR #3864 implementing this exact feature\! It's unfortunate it got closed since the team isn't accepting new features at the moment. Having in each project root would make configuration so much cleaner and more maintainable. Really hope this gets implemented in the future\! 🙏
Related to #3023.
Closing this in favor of #2628, which has more upvotes.