Sentry MCP Server

by FaureAlexis

Integrations

  • Supports configuration via .env files to store sensitive information like Sentry authentication tokens.

  • Allows AI agents to access and analyze Sentry error data, retrieve issue details, view stacktraces, and get formatted issue metadata through both tool and prompt interfaces.

Sentry MCP 服务器

Sentry MCP(现代上下文协议)工具的 TypeScript 实现,允许 AI 代理访问和分析 Sentry 错误数据。🤖

✨ 特点

  • 🎯 检索并分析 Sentry 问题
  • 📊 获取格式化的问题详细信息和元数据
  • 🔬 查看详细的堆栈跟踪
  • 🛠️ 支持工具和提示界面
  • 🛡️ 强大的错误处理
  • 🔄 实时沟通

📦安装

pnpm install

🔧 配置

使用您的 Sentry 身份验证令牌在根目录中创建一个.env文件:

SENTRY_AUTH_TOKEN=your_sentry_auth_token SENTRY_API_BASE=https://sentry.io/api/0/ # Optional, defaults to this value

📚 使用方法

启动服务器🚀

pnpm build && pnpm start

服务器将默认在端口 1337 上启动。

与 MCP 一起使用🛠️

服务器提供两个MCP接口:

  1. 工具接口: get_sentry_issue
    { "issue_id_or_url": "12345" }
  2. 提示界面: sentry-issue
    { "issue_id_or_url": "https://sentry.io/organizations/your-org/issues/12345/" }

💡 与 Cursor IDE 集成

Sentry MCP 服务器可以与 Cursor IDE 集成,以增强开发体验:

  1. 🚀 使用pnpm start在本地启动 MCP 服务器
  2. 🔧 配置 Cursor 使用本地 MCP 服务器:
  3. 🎉 直接在您的 IDE 中享受无缝的 Sentry 问题分析!

🤝 贡献

  1. 🔀 Fork 仓库
  2. 🌿 创建你的功能分支
  3. 💾 提交你的更改
  4. 🚀 推送到分支
  5. 📬 创建一个新的 Pull 请求
-
security - not tested
F
license - not found
-
quality - not tested

一个 TypeScript 服务器,允许 AI 代理通过现代上下文协议访问、检索和分析 Sentry 错误数据。

  1. ✨ Features
    1. 📦 Installation
      1. 🔧 Configuration
        1. 📚 Usage
          1. Starting the Server 🚀
          2. Using with MCP 🛠️
        2. 💡 Integrating with Cursor IDE
          1. 🤝 Contributing

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables AI assistants to interact with Sentry for error tracking and monitoring, allowing retrieval and analysis of error data, project management, and performance monitoring through the Sentry API.
              Last updated -
              10
              3
              TypeScript
            • -
              security
              -
              license
              -
              quality
              A TypeScript implementation of a Model Context Protocol server that connects to Sentry error tracking service, allowing AI models to query and analyze error reports and events.
              Last updated -
              TypeScript
            • A
              security
              A
              license
              A
              quality
              A TypeScript server that enhances AI assistants' capabilities when working with Starwind UI components, providing tools for project initialization, component installation, documentation access, and more.
              Last updated -
              6
              15
              TypeScript
              MIT License
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that lets AI assistants interact with the Sentry API to retrieve and analyze error data, manage projects, and monitor application performance.
              Last updated -
              11
              3
              TypeScript

            View all related MCP servers

            ID: 7ofysdpf07