Skip to main content
Glama

Sentry MCP server

mcp-server-sentry:Sentry MCP 服务器

概述

一个模型上下文协议服务器,用于从 Sentry.io 检索和分析问题。此服务器提供工具,用于检查来自您的 Sentry 帐户的错误报告、堆栈跟踪和其他调试信息。

工具

  1. get_sentry_issue
    • 通过 ID 或 URL 检索并分析 Sentry 问题
    • 输入:
      • issue_id_or_url (字符串): 要分析的 Sentry 问题 ID 或 URL
    • 返回:发行详情包括:
      • 标题
      • 问题 ID
      • 地位
      • 等级
      • 首次出现时间戳
      • 上次上线时间戳
      • 事件计数
      • 完整的堆栈跟踪

提示

  1. sentry-issue
    • 从 Sentry 检索问题详细信息
    • 输入:
      • issue_id_or_url (字符串): Sentry 问题 ID 或 URL
    • 返回:格式化的问题详细信息作为对话上下文

安装

使用 uv(推荐)

使用uv时无需特殊安装。我们将使用uvx直接运行mcp-server-sentry

使用 PIP

或者,您可以通过 pip 安装mcp-server-sentry

pip install mcp-server-sentry

安装后,您可以使用以下命令将其作为脚本运行:

python -m mcp_server_sentry

配置

与 Claude Desktop 一起使用

将其添加到您的claude_desktop_config.json中:

"mcpServers": { "sentry": { "command": "uvx", "args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } }
"mcpServers": { "sentry": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } }
"mcpServers": { "sentry": { "command": "python", "args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } }

与 VS Code 一起使用

为了快速安装,请使用下面的一键安装按钮之一...

如需手动安装,请将以下 JSON 块添加到 VS Code 中的“用户设置 (JSON)”文件中。您可以按下Ctrl + Shift + P并输入Preferences: Open Settings (JSON)来完成此操作。

或者,您可以将其添加到工作区中名为.vscode/mcp.json的文件中。这样您就可以与其他人共享该配置。

请注意,使用mcp.json文件时需要mcp密钥。

{ "mcp": { "inputs": [ { "type": "promptString", "id": "auth_token", "description": "Sentry Auth Token", "password": true } ], "servers": { "sentry": { "command": "uvx", "args": ["mcp-server-sentry"], "env": { "SENTRY_AUTH_TOKEN": "${input:auth_token}" } } } } }
{ "mcp": { "inputs": [ { "type": "promptString", "id": "auth_token", "description": "Sentry Auth Token", "password": true } ], "servers": { "sentry": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/sentry"], "env": { "SENTRY_AUTH_TOKEN": "${input:auth_token}" } } } } }

Zed一起使用

添加到您的 Zed settings.json:

"context_servers": [ "mcp-server-sentry": { "command": { "path": "uvx", "args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } } ],
"context_servers": { "mcp-server-sentry": { "command": "python", "args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } },

调试

您可以使用 MCP 检查器来调试服务器。对于 uvx 安装:

npx @modelcontextprotocol/inspector uvx mcp-server-sentry --auth-token YOUR_SENTRY_TOKEN

或者,如果您已将软件包安装在特定目录中或正在其上进行开发:

cd path/to/servers/src/sentry npx @modelcontextprotocol/inspector uv run mcp-server-sentry --auth-token YOUR_SENTRY_TOKEN

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

该服务器提供工具来检查来自您的 Sentry 帐户的错误报告、堆栈跟踪和其他调试信息。

  1. 概述
    1. 工具
    2. 提示
  2. 安装
    1. 使用 uv(推荐)
    2. 使用 PIP
  3. 配置
    1. 与 Claude Desktop 一起使用
    2. 与 VS Code 一起使用
    3. 与Zed一起使用
  4. 调试
    1. 执照

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that retrieves and analyzes Sentry.io issues, allowing users to inspect error reports, stacktraces, and debugging information from their Sentry account.
        Last updated -
        16
        Python
        • Apple
      • 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
      • -
        security
        F
        license
        -
        quality
        An MCP server that connects to Sentry.io or self-hosted Sentry instances to retrieve and analyze error reports, stack traces, and debugging information.
        Last updated -
        2
        Python

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/modelcontextprotocol/sentry'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server