Cover image
Try Now
2025-04-04

用于哨兵的模型上下文协议(MCP)服务器

3 years

Works with Finder

1

Github Watches

4

Github Forks

3

Github Stars

Sentry MCP Server

A Model Context Protocol (MCP) server for interacting with Sentry. This MCP server provides tools to interact with the Sentry API, allowing AI assistants to retrieve and analyze error data, manage projects, and monitor application performance.

Requirements

  • Node.js (v14 or higher)
  • npm or yarn
  • Sentry account with API access
  • Sentry authentication token with appropriate permissions

Setup

  1. Install dependencies:
    npm install
    

Using this within an IDE

This MCP has been verified to work against Cursor, Codeium Windsurf, and Claude Desktop.

Using with Claude

To use this MCP server with Claude, add the following configuration to your Claude settings:

{
    "mcpServers": {
        "sentry": {
            "command": "npx",
            "args": ["ts-node", "/Users/<your-user-directory>/sentry-mcp-ts/index.ts"],
            "env": {
                "SENTRY_AUTH": "<YOUR_AUTH_TOKEN>"
            }
        }
    }
}
  • Update with your directory path in the args field.
  • Replace <YOUR_AUTH_TOKEN> with your Sentry authentication token.

Available Tools

list_projects

Lists all accessible Sentry projects for a given organization.

Parameters:

  • organization_slug (string, required): The slug of the organization to list projects from
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

resolve_short_id

Retrieves details about an issue using its short ID.

Parameters:

  • organization_slug (string, required): The slug of the organization the issue belongs to
  • short_id (string, required): The short ID of the issue to resolve (e.g., PROJECT-123)
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

get_sentry_event

Retrieves and analyzes a specific Sentry event from an issue.

Parameters:

  • issue_id_or_url (string, required): Either a full Sentry issue URL or just the numeric issue ID
  • event_id (string, required): The specific event ID to retrieve
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_error_events_in_project

Lists error events from a specific Sentry project.

Parameters:

  • organization_slug (string, required): The slug of the organization the project belongs to
  • project_slug (string, required): The slug of the project to list events from
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

create_project

Creates a new project in Sentry and retrieves its client keys.

Parameters:

  • organization_slug (string, required): The slug of the organization to create the project in
  • team_slug (string, required): The slug of the team to assign the project to
  • name (string, required): The name of the new project
  • platform (string, optional): The platform for the new project
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_project_issues

Lists issues from a specific Sentry project.

Parameters:

  • organization_slug (string, required): The slug of the organization the project belongs to
  • project_slug (string, required): The slug of the project to list issues from
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_issue_events

Lists events for a specific Sentry issue.

Parameters:

  • organization_slug (string, required): The slug of the organization the issue belongs to
  • issue_id (string, required): The ID of the issue to list events from
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

get_sentry_issue

Retrieves and analyzes a Sentry issue.

Parameters:

  • issue_id_or_url (string, required): Either a full Sentry issue URL or just the numeric issue ID
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_organization_replays

Lists replays from a specific Sentry organization.

Parameters:

  • organization_slug (string, required): The slug of the organization to list replays from
  • project_ids (string[], optional): List of project IDs to filter replays by
  • environment (string, optional): Environment to filter replays by
  • stats_period (string, optional): Time period for stats (e.g., "24h", "7d")
  • start (string, optional): Start date for filtering replays
  • end (string, optional): End date for filtering replays
  • sort (string, optional): Field to sort replays by
  • query (string, optional): Search query to filter replays
  • per_page (number, optional): Number of replays per page
  • cursor (string, optional): Cursor for pagination
  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")
  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

Running the Server

npx ts-node index.ts

Authentication

This tool requires a Sentry authentication token with appropriate permissions to access the Sentry API. You can generate a token in your Sentry account settings under Settings -> User Settings -> Auth Tokens.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • modelcontextprotocol
  • 模型上下文协议服务器

    Reviews

    4 (1)
    Avatar
    user_FGiThW9V
    2025-04-16

    I've been using sentry-mcp-stdio for a while now, and it's an impressive tool by getsentry. The integration process is seamless, and it offers robust support for error tracking and logging. The repository on GitHub is well-maintained, and the documentation is clear and concise. Highly recommended for developers looking to enhance their application's monitoring capabilities.