Skip to main content
Glama
MCP-100

MCP Sentry

by MCP-100

mcp-sentry:Sentry MCP 服务器

铁匠徽章

概述

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

工具

  1. get_sentry_issue

    • 通过 ID 或 URL 检索并分析 Sentry 问题

    • 输入:

      • issue_id_or_url (字符串): 要分析的 Sentry 问题 ID 或 URL

    • 返回:发行详情包括:

      • 标题

      • 问题 ID

      • 地位

      • 等级

      • 首次出现时间戳

      • 上次上线时间戳

      • 事件计数

      • 完整的堆栈跟踪

  2. get_list_issues

    • 按项目 slug 检索和分析 Sentry 问题

    • 输入:

      • project_slug (字符串):要分析的 Sentry 项目 slug

      • organization_slug (字符串):要分析的哨兵组织 slug

    • 返回:问题列表及其详细信息包括:

      • 标题

      • 问题 ID

      • 地位

      • 等级

      • 首次出现时间戳

      • 上次上线时间戳

      • 事件计数

      • 基本问题信息

提示

  1. sentry-issue

    • 从 Sentry 检索问题详细信息

    • 输入:

      • issue_id_or_url (字符串): Sentry 问题 ID 或 URL

    • 返回:格式化的问题详细信息作为对话上下文

Related MCP server: MCP Server Sentry

安装

通过 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 pip install -e .

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

python -m mcp_sentry

配置

与 Claude Desktop 一起使用

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

"mcpServers": {
  "sentry": {
    "command": "uvx",
    "args": ["mcp-sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
  }
}
"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"]
  }
}
"mcpServers": {
  "sentry": {
    "command": "python",
    "args": ["-m", "mcp_sentry", "--auth-token", "YOUR_SENTRY_TOKEN","--project-slug" ,"YOUR_PROJECT_SLUG", "--organization-slug","YOUR_ORGANIZATION_SLUG"]
  }
}

Zed一起使用

添加到您的 Zed settings.json:

例如 Cursonmcp.json

"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"]
    }
  }
],
"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"]
  }
},
"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"
      }
    }
},

调试

您可以使用 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

检查工具

分叉自

执照

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

Available Tools

2 tools
get_list_issuesA

Retrieve and analyze Sentry issues by project slug. Use this tool when you need to: - Investigate production errors and crashes - Access detailed stacktraces from Sentry - Analyze error patterns and frequencies - Get information about when issues first/last occurred - Review error counts and status

ParametersJSON Schema
NameRequiredDescriptionDefault
project_slugNoSentry project slug to analyze
organization_slugNoSentry organization slug to analyze

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full disclosure burden. It successfully describes the data accessed (stacktraces, counts, first/last occurrence dates) but omits safety classification (read-only vs. destructive), authentication requirements, or rate limiting constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with the core purpose front-loaded in the first sentence, followed by actionable bullet points. Each of the five use-case bullets earns its place by clarifying distinct capabilities. Slightly verbose but efficiently organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple 2-parameter schema and lack of output schema, the description adequately compensates by detailing the returned information (stacktraces, status, counts) within the text. Missing only safety/permission context which would normally appear in annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both 'project_slug' and 'organization_slug', establishing a baseline of 3. The description references 'by project slug' confirming the primary filter, but does not add format constraints, examples, or explain the optional nature of parameters (required: [] in schema).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource combination ('Retrieve and analyze Sentry issues') and scopes it to 'by project slug'. It distinguishes from sibling 'get_sentry_issue' by emphasizing aggregate capabilities like 'patterns and frequencies' and 'error counts' vs. single-issue retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Use this tool when you need to:' preamble followed by five specific scenarios (investigate crashes, access stacktraces, analyze patterns, etc.) provides excellent contextual guidance. Lacks an explicit pointer to sibling 'get_sentry_issue' for single-issue lookups, preventing a perfect score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_sentry_issueA

Retrieve and analyze a Sentry issue by ID or URL. Use this tool when you need to: - Investigate production errors and crashes - Access detailed stacktraces from Sentry - Analyze error patterns and frequencies - Get information about when issues first/last occurred - Review error counts and status

ParametersJSON Schema
NameRequiredDescriptionDefault
issue_id_or_urlYesSentry issue ID or URL to analyze

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. Discloses what data is returned (stacktraces, frequencies, first/last occurrence, status) but omits operational concerns: authentication requirements, rate limits, error handling for invalid IDs, or privacy implications of accessing production errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with purpose front-loaded in the first sentence, followed by explicit usage guidelines. Bullet points are specific and non-redundant. Slightly verbose compared to minimalist ideal, but every sentence serves distinct selection or invocation guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter retrieval tool without output schema, description adequately hints at return value structure by listing accessible data types (stacktraces, error patterns, temporal metadata). Missing only operational edge cases; sufficient for agent to understand tool capabilities and expected output richness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (single parameter 'issue_id_or_url' fully documented). Description mentions 'by ID or URL' which aligns with schema but adds no additional semantic value such as format examples, validation rules, or distinction between ID vs URL input behavior. Baseline 3 appropriate for complete schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with specific verb+noun combination ('Retrieve and analyze a Sentry issue') and clearly identifies the lookup method ('by ID or URL'). Effectively distinguishes from sibling 'get_list_issues' by emphasizing singular issue retrieval versus listing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly prefixes usage scenarios with 'Use this tool when you need to:' followed by five specific bulleted contexts (production errors, stacktraces, error patterns, temporal data, counts/status). Lacks explicit 'when not to use' or named alternative, but sibling tool name provides clear contrast.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv0.6.2
    • First observedget_list_issues
    • First observedget_sentry_issue

TDQS

B3.3/5.0
Disambiguation1/5

The two tools are essentially indistinguishable in purpose. Both descriptions are identical, listing the exact same use cases (investigate errors, access stacktraces, analyze patterns, get timing info, review counts). An agent would have no way to determine when to use get_list_issues versus get_sentry_issue since they appear to serve the same function.

Naming Consistency3/5

Both tools follow a similar get_ prefix pattern, which provides some consistency. However, the naming is confusingly similar (get_list_issues vs get_sentry_issue) rather than clearly differentiated, and the verb-noun structure is mixed (list_issues vs sentry_issue).

Tool Count2/5

With only 2 tools, this feels severely under-scoped for a Sentry integration. A production error monitoring system would typically need tools for creating issues, updating statuses, searching/filtering, accessing events, or managing projects. Two tools is too few to cover meaningful workflows.

Completeness1/5

The tool surface is severely incomplete for Sentry's domain. There are no tools for creating issues, updating issue status (resolve/ignore), searching across projects, accessing event details, managing alerts, or any administrative functions. The two existing tools appear redundant rather than complementary.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    F
    maintenance
    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.
    11
    21
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    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.
    31
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that connects to Sentry.io or self-hosted Sentry instances to retrieve and analyze error reports, stack traces, and debugging information.
    2
    -
  • F
    license
    B
    quality
    F
    maintenance
    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.
    11
    11
    -

Latest Blog Posts

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/MCP-100/mcp-sentry'

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