
一个MCP服务器,通过LLM与Sentry交互。
概览
Sentry 的 MCP 服务主要面向人工参与的编码代理。我们的工具选择和优先级更侧重于开发者工作流程和调试用例,而非为所有 Sentry 功能提供通用 MCP 服务器。 这个远程MCP服务器作为上游Sentry API的中间件,针对Cursor、Claude Code等编程助手及类似开发工具进行了优化。它基于Cloudflare对远程MCP的研究。 你可以访问部署的生产服务,找到所有你需要了解的信息: 如果你想贡献内容、了解其工作原理,或想为自托管的 Sentry 运行,请继续下文。 安装为 Claude Code 插件,用于自动子代理委托: 这提供了一个 Sentry-mcp 子代理,当你询问 Sentry 的错误、问题、跟踪或性能时,Claude 会自动委派给它。
概述(AI 翻译)
该仓库包含 Sentry CLI、Sentry MCP 服务器及共享文件 包。关于CLI,请参见CLI指南和已发布的 文档见。文档索引 涵盖两款产品及共享贡献者指导。
哨兵MCP
Sentry 的 MCP 服务主要面向人工参与的编码代理。我们的工具选择和优先级更侧重于开发者工作流程和调试用例,而非为所有 Sentry 功能提供通用 MCP 服务器。
这个远程MCP服务器作为上游Sentry API的中间件,针对Cursor、Claude Code等编程助手及类似开发工具进行了优化。它基于Cloudflare对远程MCP的研究。
开始
你可以访问部署的生产服务,找到所有你需要了解的信息:
如果你想贡献内容、了解其工作原理,或想为自托管的 Sentry 运行,请继续下文。
Claude 代码插件
安装为 Claude Code 插件,用于自动子代理委托:
这提供了一个 sentry-mcp 子代理,当你询问 Sentry 的错误、问题、跟踪或性能时,Claude 会自动委派给它。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Sentry Toolkit
This repository contains the Sentry CLI, the Sentry MCP server, and shared packages. For the CLI, see the CLI guide and the published documentation at . The documentation index covers both products and shared contributor guidance.
The independent Docs MCP Worker provides documentation
search and AI-generated answers backed by docs.sentry.io.
Sentry MCP
Sentry’s MCP service is primarily designed for human-in-the-loop coding agents. Our tool selection and priorities are focused on developer workflows and debugging use cases, rather than providing a general-purpose MCP server for all Sentry functionality.
This remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools. It’s based on Cloudflare’s work towards remote MCPs.
Getting Started
You’ll find everything you need to know by visiting the deployed service in production:
If you’re looking to contribute, learn how it works, or to run this for self-hosted Sentry, continue below.
Claude Code Plugin
Install as a Claude Code plugin for automatic subagent delegation:
claude plugin marketplace add getsentry/sentry-mcp
claude plugin install sentry-mcp@sentry-mcp
This provides a sentry-mcp subagent that Claude automatically delegates to when you ask about Sentry errors, issues, traces, or performance.
For forward-looking tool variants and features:
claude plugin install sentry-mcp@sentry-mcp-experimental
Stdio vs Remote
While this repository is focused on acting as an MCP service, we also support a stdio transport. It is the easiest way to run the MCP server against a self-hosted Sentry install.
Note: The AI-powered search tools (search_errors, search_traces, search_logs, search_issues, etc.) require an LLM provider (OpenAI, Azure OpenAI, Anthropic, or OpenRouter). These tools use natural language processing to translate queries into Sentry’s query syntax. Without a configured provider, these specific tools will be unavailable, but all other tools will function normally.
Sentry CLI (recommended)
Run the stdio server with the Sentry CLI’s sentry mcp command. It uses your CLI login, so the MCP config needs no token:
curl https://cli.sentry.dev/install -fsS | bash
sentry auth login
claude mcp add sentry -- sentry mcp
The CLI also installs with brew install getsentry/tools/sentry,
npm install -g sentry, or irm https://cli.sentry.dev/install.ps1 | iex on
Windows. See the CLI installation guide.
Other clients take the same command:
{
"mcpServers": {
"sentry": {
"command": "sentry",
"args": ["mcp"]
}
}
}
安装
npx @sentry/mcp-server@latest auth login # once, to sign in配置
{
"mcpServers": {
"sentry": {
"command": "sentry",
"args": ["mcp"]
}
}
}