Sentry
io.github.getsentry由 GitHub 帳號 getsentry 發布v0.49.0更新於 Nov 7, 2026
MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
概覽
Sentry 的 MCP 伺服器,讓 AI 助理存取 Sentry 的錯誤監控、問題追蹤與除錯資料,支援 sentry.io 與自架執行個體。
- 可以做什麼
- 讓助理存取 Sentry 的錯誤監控、問題追蹤與除錯資料
- 可作為遠端端點,也可透過 npx 以本機 stdio 程序執行
- 用 auth login 一次登入(與 Sentry CLI 共用),或直接提供驗證權杖
- 管理已儲存的登入:查看狀態、列出、切換或登出
- 設定 CLI 預設值並修復與 CLI 共用的本機資料庫
- 指定自架 Sentry 的主機名稱或 URL
- 適用情境
- 當你希望助理在工作過程中查看 Sentry 的錯誤、問題與除錯脈絡時適用,無論使用 sentry.io 或自架 Sentry 執行個體。
- 執行需求
- 需要遠端端點,或 Node.js 22.15 以上版本以透過 npx 執行 npm 套件。必須驗證:OAuth、一次性 auth login,或 SENTRY_AUTH_TOKEN 環境變數。使用自架 Sentry 時,需同時設定 SENTRY_HOST 或 SENTRY_URL 與權杖。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sentry,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.getsentry%2Fsentry-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"sentry": {
"type": "http",
"url": "https://mcp.sentry.dev/mcp"
}
}
}README
@sentry/mcp-server
The Sentry MCP server for stdio clients, as a single file with no runtime dependencies. Works with sentry.io and self-hosted Sentry.
Requires Node.js 22.15 or later.
Authentication
-
npx -y @sentry/mcp-server auth loginsigns in once. The login is shared with thesentryCLI, so an existingsentry auth loginworks too. -
To use a token instead, set
SENTRY_AUTH_TOKENin the client'senv. It wins over a stored login: -
--access-token/SENTRY_ACCESS_TOKENare deprecated. They still work, asSENTRY_AUTH_TOKEN, and print a warning on stderr. -
Each server process uses one account. The package runs the CLI's own
authcommands, sonpx -y @sentry/mcp-server auth status|list|switch|logoutmanages the same login. -
npx -y @sentry/mcp-server cli defaultsandcli fixare the CLI's own commands too: they set the defaults (such asca-certfor a corporate TLS proxy) and repair the local database the server shares with the CLI.
Options
Starting the server is the default command, so npx -y @sentry/mcp-server
and npx -y @sentry/mcp-server mcp are the same. Run
npx -y @sentry/mcp-server mcp --help for the flags and environment
variables. For self-hosted Sentry, set SENTRY_HOST / SENTRY_URL (with
SENTRY_AUTH_TOKEN, only these scope the token to your server). See
stdio authentication.
Development
The source lives in packages/cli: packages/cli/src/mcp-server.ts runs the
CLI's runner with an application of four commands, mcp, auth, cli
(defaults and fix only), and help (packages/cli/src/mcp-server-app.ts).
pnpm run bundle builds dist/sentry-mcp.cjs from it, and
pnpm run test:bundle smoke-tests the result.
來源:packages/mcp-server/README.md,提交 b3495bd
工具
0版本歷史
6- v0.49.0最新Nov 7, 2026
- v0.48.0Nov 6, 2026
- v0.42.0Sep 25, 2026
- v0.41.0Sep 25, 2026
- v0.40.0Sep 25, 2026
- v0.25.0Sep 16, 2026
評分
已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。