GS

getsentry/sentry-mcp-stdio

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

12 stars 12 forks Качество 55 Тренд 8

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
Открыть полный README на GitHub

Установка

npx ts-node /Users/<your-user-directory>/sentry-mcp-ts/index.ts
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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