feat: add devinfra MCP config for Codex CLI#115517
Open
sentry-junior[bot] wants to merge 1 commit into
Open
Conversation
- Add .codex/config.toml with sentry and devinfra-mcp servers for native Codex CLI support - Add devinfra-mcp to enabledMcpjsonServers in .claude/settings.json so Codex's auto-migration from .mcp.json also picks it up The devinfra-mcp provides documentation on devenv, devservices, the dev server, testing, CI/CD, deployment, and troubleshooting. This helps agents set up and work with the Sentry dev environment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the devinfra-mcp server configuration so that Codex CLI (and other agents) can access dev-infra documentation when working in the sentry repo.
Changes
.codex/config.toml(new) — native Codex config with both thesentryanddevinfra-mcpMCP servers. Codex reads this directly from the project root..claude/settings.json— addsdevinfra-mcptoenabledMcpjsonServers. Codex also has an auto-migration path that reads Claude's.mcp.json, but it filters servers through this allowlist. Previously onlysentrywas listed, sodevinfra-mcpwas being skipped during migration.What is devinfra-mcp?
The devinfra-mcp (
https://devinfra-mcp.getsentry.net/mcp) is a doc retrieval service that indexes dev-infra documentation. It exposes two tools:list_docs— full doc catalogsearch_docs(query)— keyword searchIt covers devenv, devservices, the Sentry dev server, testing, CI/CD, GoCD, deployment, craft, sentry-options, Flagpole, and more. This helps agents that struggle with setting up or working in the sentry dev environment.
Codex config format
Codex uses TOML for project config (
.codex/config.toml). For streamable HTTP MCP servers, the format is:ref: https://github.com/openai/codex — see
codex-rs/config/src/mcp_types.rsfor the schema.