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

已验证Streamable HTTP可网页运行开发者工具安全与监控

概览

AI 生成的概览

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 与令牌。
安装前请注意
服务器需要 Sentry 认证令牌或已保存的登录,可访问你的 Sentry 账户数据;每个服务器进程只使用一个账户。令牌优先于已保存的登录,已弃用的 SENTRY_ACCESS_TOKEN 仍可用但会给出警告。cli fix 命令会修复与 Sentry CLI 共用的本地数据库,即改动本地状态。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sentry,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

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.

json
{  "command": "npx",  "args": ["-y", "@sentry/mcp-server@latest"]}

Requires Node.js 22.15 or later.

Authentication

  • npx -y @sentry/mcp-server auth login signs in once. The login is shared with the sentry CLI, so an existing sentry auth login works too.

  • To use a token instead, set SENTRY_AUTH_TOKEN in the client's env. It wins over a stored login:

    json
    {  "command": "npx",  "args": ["-y", "@sentry/mcp-server@latest"],  "env": {    "SENTRY_AUTH_TOKEN": "sntryu_..."  }}
  • --access-token / SENTRY_ACCESS_TOKEN are deprecated. They still work, as SENTRY_AUTH_TOKEN, and print a warning on stderr.

  • Each server process uses one account. The package runs the CLI's own auth commands, so npx -y @sentry/mcp-server auth status|list|switch|logout manages the same login.

  • npx -y @sentry/mcp-server cli defaults and cli fix are the CLI's own commands too: they set the defaults (such as ca-cert for 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
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

6
  1. v0.49.0最新Nov 7, 2026
  2. v0.48.0Nov 6, 2026
  3. v0.42.0Sep 25, 2026
  4. v0.41.0Sep 25, 2026
  5. v0.40.0Sep 25, 2026
  6. v0.25.0Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。