GS

getsentry/sentry-mcp-stdio

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 12 forks 质量 55 趋势 19

Model Context Protocol (MCP) server for Sentry

概览

- This has largely been superceded by the Sentry Remote-MCP Server which supports a lot more capabilities (auth, better tooling, etc...). This one exists for educational purposes as a standalone MCP server; but in all likelihood you'll want to use the remote. You can see it live at https://mcp.sentry.dev 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. - Node.js (v14 or higher) - npm or yarn - Sentry account with API access - Sentry authentication token with appropriate permissions This MCP has been verified to work against Cursor, Codeium Windsurf, and Claude Desktop. To use this MCP server with Claude, add the following configuration to your Claude settings: * Update with your directory path in the args field. * Replace with your Sentry authentication token.

README

以下为原文 README 节选,完整内容请查看原文。

Note - This has largely been superceded by the Sentry Remote-MCP Server which supports a lot more capabilities (auth, better tooling, etc…). This one exists for educational purposes as a standalone MCP server; but in all likelihood you’ll want to use the remote. You can see it live at https://mcp.sentry.dev

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//sentry-mcp-ts/index.ts"],
            "env": {
                "SENTRY_AUTH": ""
            }
        }
    }
}
  • Update with your directory path in the args field.
  • Replace `` 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
在 GitHub 查看完整 README

安装

npx ts-node /Users/<your-user-directory>/sentry-mcp-ts/index.ts
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sentry": { "command": "npx", "args": ["ts-node", "/Users/<your-user-directory>/sentry-mcp-ts/index.ts"], "env": { "SENTRY_AUTH": "<YOUR_AUTH_TOKEN>" } } } }