一个用于检索和分析 Sentry.io 问题的模型上下文协议服务器
概览
一个用于检索和分析 Sentry.io 问题的模型上下文协议服务器。该服务器提供工具,用于检查您的 Sentry 账户中的错误报告、栈追踪及其他调试信息。 1. get_sentry_issue - 通过 ID 或 URL 检索和分析 Sentry 议题 - 输入:- issue_id_or_url(字符串):用于分析的 Sentry 议题 ID 或 URL——返回:议题详情,包括:- 标题 - 议题 ID - 状态 - 级别 - 首次出现时间戳 - 最后一次出现的时间戳 - 事件计数 - 全栈追踪 2.get_list_issues - 按项目单块检索和分析 Sentry 问题 - 输入:- project_slug(字符串):Sentry 项目单块分析 - organization_slug(字符串):Sentry 组织单块分析 - 返回:问题列表及详细信息包括:标题 - 问题 ID - 状态 - 级别 - 首次出现时间戳 - 最后一次出现时间戳 - 事件计数 - 基本问题信息 1.
概述(AI 翻译)
概述
一个用于检索和分析 Sentry.io 问题的模型上下文协议服务器。该服务器提供工具,用于检查您的 Sentry 账户中的错误报告、栈追踪及其他调试信息。
工具
get_sentry_issue
- 通过ID或URL检索和分析Sentry问题
- 输入:
issue_id_or_url(字符串):用于分析的哨兵问题ID或URL- 退货:发行详情包括:
- 标题
- 议题ID
- 状态
- 水平
- 首次出现的时间戳
- 最后出现的时间戳
- 事件计数
- 全栈追踪
get_list_issues
- 按项目 slug 检索和分析 Sentry 问题
- 输入:
project_slug(字符串):Sentry 项目的 slug 分析organization_slug(字符串):哨兵组织的核头,需分析- 申报:问题列表,详细内容包括:
- 标题
- 议题ID
- 状态
- 水平
- 首次出现的时间戳
- 最后出现的时间戳
- 事件计数
- 基本问题信息
提示
sentry-issue
- 从 Sentry 获取问题详情
- 输入:
issue_id_or_url(字符串):哨兵问题ID 或网址- 返回:格式化的问题细节作为对话上下文
安装
通过Smithery安装
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
mcp-sentry: A Sentry MCP server
Overview
A Model Context Protocol server for retrieving and analyzing issues from Sentry.io. This server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.
Tools
get_sentry_issue- Retrieve and analyze a Sentry issue by ID or URL
- Input:
issue_id_or_url(string): Sentry issue ID or URL to analyze
- Returns: Issue details including:
- Title
- Issue ID
- Status
- Level
- First seen timestamp
- Last seen timestamp
- Event count
- Full stacktrace
get_list_issues- Retrieve and analyze Sentry issues by project slug
- Input:
project_slug(string): Sentry project slug to analyzeorganization_slug(string): Sentry organization slug to analyze
- Returns: List of issues with details including:
- Title
- Issue ID
- Status
- Level
- First seen timestamp
- Last seen timestamp
- Event count
- Basic issue information
Prompts
sentry-issue- Retrieve issue details from Sentry
- Input:
issue_id_or_url(string): Sentry issue ID or URL
- Returns: Formatted issue details as conversation context
Installation
Installing via Smithery
To install mcp-sentry for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @qianniuspace/mcp-sentry --client claude
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run mcp-sentry.
Using PIP
Alternatively you can install mcp-sentry via pip:
pip install mcp-sentry
or use uv
uv pip install -e .
After installation, you can run it as a script using:
python -m mcp_sentry
Configuration
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
"mcpServers": {
"sentry": {
"command": "python",
安装
uvx mcp-sentry --auth-token YOUR_SENTRY_TOKEN --project-slug YOUR_PROJECT_SLUG --organization-slug YOUR_ORGANIZATION_SLUG配置
"mcpServers": {
"sentry": {
"command": "uvx",
"args": ["mcp-sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
}
}