MCP Sentry
一个模型上下文协议服务器,用于检索和分析 Sentry.io 问题,允许用户检查来自其 Sentry 账户的错误报告、堆栈跟踪和调试信息。
README
mcp-sentry: 一个 Sentry MCP 服务器
概述
一个用于从 Sentry.io 检索和分析问题的模型上下文协议服务器。 此服务器提供工具来检查来自您的 Sentry 帐户的错误报告、堆栈跟踪和其他调试信息。
工具
get_sentry_issue
- 通过 ID 或 URL 检索和分析 Sentry 问题
- 输入:
issue_id_or_url
(字符串): 要分析的 Sentry 问题 ID 或 URL
- 返回:问题详情,包括:
- 标题
- 问题 ID
- 状态
- 级别
- 首次出现时间戳
- 最近一次出现时间戳
- 事件计数
- 完整堆栈跟踪
get_list_issues
- 通过项目 slug 检索和分析 Sentry 问题
- 输入:
project_slug
(字符串): 要分析的 Sentry 项目 slugorganization_slug
(字符串): 要分析的 Sentry 组织 slug
- 返回:问题列表,包含以下详细信息:
- 标题
- 问题 ID
- 状态
- 级别
- 首次出现时间戳
- 最近一次出现时间戳
- 事件计数
- 基本问题信息
提示词
sentry-issue
- 从 Sentry 检索问题详情
- 输入:
issue_id_or_url
(字符串): Sentry 问题 ID 或 URL
- 返回:格式化的issue详情作为对话上下文
安装
通过 Smithery 安装
要通过 Smithery 为 Claude Desktop 自动安装 mcp-sentry:
npx -y @smithery/cli install @qianniuspace/mcp-sentry --client claude
使用 uv (推荐)
当使用 uv
时,无需进行特定安装。 我们将使用 uvx
直接运行 mcp-sentry。
使用 PIP
或者,您可以通过 pip 安装 mcp-sentry
:
pip install mcp-sentry
或者使用 uv
uv pip install -e .
安装后,您可以将其作为脚本运行:
python -m mcp_sentry
配置
与 Claude Desktop 一起使用
将其添加到您的 claude_desktop_config.json
:
<details> <summary>使用 uvx</summary>
"mcpServers": {
"sentry": {
"command": "uvx",
"args": ["mcp-sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
}
}
</details>
<details> <summary>使用 docker</summary>
"mcpServers": {
"sentry": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
}
}
</details>
<details>
<summary>使用 pip 安装</summary>
"mcpServers": {
"sentry": {
"command": "python",
"args": ["-m", "mcp_sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
}
}
</details>
与 Zed 一起使用
添加到您的 Zed settings.json:
<details> <summary>使用 uvx</summary>
例如 Curson
"context_servers": [
"mcp-sentry": {
"command": {
"path": "uvx",
"args": ["mcp-sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
}
}
],
</details>
<details> <summary>使用 pip 安装</summary>
"context_servers": {
"mcp-sentry": {
"command": "python",
"args": ["-m", "mcp_sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
}
},
</details>
<details> <summary>使用带有自定义路径的 pip 安装</summary>
"context_servers": {
"sentry": {
"command": "python",
"args": [
"-m",
"mcp_sentry",
"--auth-token",
"YOUR_SENTRY_TOKEN",
"--project-slug",
"YOUR_PROJECT_SLUG",
"--organization-slug",
"YOUR_ORGANIZATION_SLUG"
],
"env": {
"PYTHONPATH": "path/to/mcp-sentry/src"
}
}
},
</details>
调试
您可以使用 MCP 检查器来调试服务器。 对于 uvx 安装:
npx @modelcontextprotocol/inspector uvx mcp-sentry --auth-token YOUR_SENTRY_TOKEN --project-slug YOUR_PROJECT_SLUG --organization-slug YOUR_ORGANIZATION_SLUG
或者,如果您已将软件包安装在特定目录中或正在开发它:
cd path/to/servers/src/sentry
npx @modelcontextprotocol/inspector uv run mcp-sentry --auth-token YOUR_SENTRY_TOKEN --project-slug YOUR_PROJECT_SLUG --organization-slug YOUR_ORGANIZATION_SLUG
或者在终端中
npx @modelcontextprotocol/inspector uv --directory /Volumes/ExtremeSSD/MCP/mcp-sentry/src run mcp_sentry --auth-token YOUR_SENTRY_TOKEN
--project-slug YOUR_PROJECT_SLUG --organization-slug YOUR_ORGANIZATION_SLUG
Fork From
许可证
此 MCP 服务器是在 MIT 许可证下获得许可的。 这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。 有关更多详细信息,请参阅项目存储库中的 LICENSE 文件。
推荐服务器
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
MCP Package Docs Server
促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。
Claude Code MCP
一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。
@kazuph/mcp-taskmanager
用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。
mermaid-mcp-server
一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。
Jira-Context-MCP
MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。
mixpanel
连接到您的 Mixpanel 数据。 从 Mixpanel 分析查询事件、留存和漏斗数据。

Linear MCP Server
一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

Sequential Thinking MCP Server
这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。