🤖 [codex] Add MCP config overlay support#92
Conversation
|
@codex review |
💡 Codex ReviewLine 140 in 0c29551 When ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0c29551e8b
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 366dd72c08
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🤖 Drafted by my AI agent.
Summary
.codex/config.tomlfrom sharedai-rules/mcp.json, with optionalai-rules/codex-config.tomloverlay support for repo-owned Codex settings.Why
Codex project config can include more than MCP server definitions. Letting repositories define
ai-rules/codex-config.tomlgives them a source-controlled place for shared Codex settings while still deriving MCP server entries from the commonai-rules/mcp.jsonsource.If the overlay defines a server that is also generated from
ai-rules/mcp.json, the overlay wins for overlapping fields. The generator resolves those tables before writing TOML, so.codex/config.tomlremains parseable while still allowing project-specific overrides, such as customizing a generatedrlibserver.Alternatives Considered
.codex/config.tomlcontent and adding generated MCP server tables was considered, but it leaves shared Codex settings outside source control and can produce duplicate TOML tables when an existing target server name overlaps withai-rules/mcp.json.Validation
cargo fmt --all --check./scripts/clippy-check.shcargo testorigin/mainai-rules/mcp.json: generated Codex config includesactionable-ci-resultsandrlib, and parses withtomllib.This PR description was drafted with AI assistance.