如何将 Sentry 远程 MCP 连接到 OpenAI Codex CLI

约 1 分钟即可把 Sentry 的远程 MCP 服务端接入 OpenAI Codex CLI。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。

🛡️ Official✓ VerifiedHTTP + SSEOAuth 2.1🛡️ A+~575 tok18 tools
HTTP + SSEhttps://mcp.sentry.dev/mcp
Legacy SSE endpoint
SSEhttps://mcp.sentry.dev/sse

Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:

[mcp_servers.sentry]
url = "https://mcp.sentry.dev/mcp"

接入步骤

  1. 编辑 TOML 配置 — 打开 ~/.codex/config.toml,加入 [mcp_servers.sentry] 与 url = "https://mcp.sentry.dev/mcp"。
  2. 配置凭据 — 首次调用时客户端会打开 Sentry 的 OAuth 授权页面——点击允许后工具即可用。
  3. 验证 — 在 在线 Inspector 中粘贴 https://mcp.sentry.dev/mcp 并运行 initialize + tools/list 验证连通性。

🧰 工具预览(18)

ToolSafetyDescriptionParameters
find_organizations
~34 tok
🟢 ReadList Sentry organizations you can access.—
find_teams
~29 tok
🟢 ReadList teams in an organization.—
find_projects
~31 tok
🟢 ReadList projects in an organization.—
find_releases
~29 tok
🟢 ReadList releases of a project.—
search_issues
~33 tok
🟢 ReadSearch Sentry issues using query syntax.—
search_events
~32 tok
🟢 ReadSearch error and transaction events.—
get_issue_details
~31 tok
🟢 ReadGet details of a Sentry issue.—
update_issue
~32 tok
🟠 WriteUpdate an issue's status or assignment.—
analyze_issue_with_seer
~32 tok
🟢 ReadAsk Seer to analyze an issue.—
create_team
~30 tok
🟠 WriteCreate a team in an organization.—
create_project
~30 tok
🟠 WriteCreate a project in a team.—
update_project
~29 tok
🟠 WriteUpdate project settings.—
create_dsn
~30 tok
🟠 WriteCreate a DSN key for a project.—
list_dsns
~28 tok
🟢 ReadList DSN keys of a project.—
get_doc
~30 tok
🟢 ReadFetch a Sentry documentation page.—
search_docs
~29 tok
🟢 ReadSearch Sentry documentation.—
whoami
~30 tok
🟢 ReadShow the authenticated Sentry user.—
get_issue_event_details
~36 tok
🟢 ReadGet details of a specific event on an issue.—

更多连接指南