Cover image
Try Now
2025-03-19

MCP服务器用于与Sentry交互

3 years

Works with Finder

1

Github Watches

2

Github Forks

0

Github Stars

mcp-sentry: A Sentry MCP Server

A Model Context Protocol server for retrieving and analyzing issues from Sentry.io. This server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.

Overview

This MCP server allows AI assistants to access and analyze Sentry issues, providing detailed information about errors in your applications.

Tools

  1. get_sentry_issue

    Retrieve and analyze a Sentry issue by ID or URL

    Input:

    • issue_id_or_url (string): Sentry issue ID or URL to analyze

    Returns: Issue details including:

    • Title
    • Issue ID
    • Status
    • Level
    • First seen timestamp
    • Last seen timestamp
    • Event count
    • Full stacktrace

Prompts

  1. sentry-issue

    Retrieve issue details from Sentry

    Input:

    • issue_id_or_url (string): Sentry issue ID or URL

    Returns: Formatted issue details as conversation context

Installation

Prerequisites

  • Node.js 14 or later
  • A Sentry account with an authentication token

Using npm

npm install -g mcp-sentry

After installation, you can run it as a command:

mcp-sentry --auth-token YOUR_SENTRY_TOKEN

Or with the environment variable:

SENTRY_TOKEN=YOUR_SENTRY_TOKEN mcp-sentry

Using npx (without installation)

npx mcp-sentry --auth-token YOUR_SENTRY_TOKEN

Development

Project Structure

mcp-sentry/
├── src/
│   ├── index.ts           # Main entry point
│   ├── server.ts          # MCP server implementation
│   ├── sentry-client.ts   # Sentry API client
│   ├── models.ts          # Data models
│   ├── utils.ts           # Utility functions
│   └── types/             # Type definitions
├── build/                 # Compiled JavaScript files (included in the repository for direct npx execution)
├── package.json
├── tsconfig.json
└── README.md

Building

npm run build

Note: Unlike typical Node.js projects, the build directory is committed to this repository to support direct npx execution without requiring users to build the project themselves.

Running in Development Mode

npm run dev -- --auth-token YOUR_SENTRY_TOKEN

Authentication

This server requires a Sentry authentication token to access the Sentry API. You can provide this token in two ways:

  1. Using the --auth-token command-line option:

    mcp-sentry --auth-token YOUR_SENTRY_TOKEN
    
  2. Using the SENTRY_TOKEN environment variable:

    SENTRY_TOKEN=YOUR_SENTRY_TOKEN mcp-sentry
    

Usage with Claude Desktop

Add this to your Claude Desktop configuration:

"mcpServers": {
  "sentry": {
    "command": "mcp-sentry",
    "args": ["--auth-token", "YOUR_SENTRY_TOKEN"]
  }
}

Usage with Zed

Add to your Zed settings.json:

"context_servers": [
  "mcp-server-sentry": {
    "command": {
      "path": "mcp-sentry",
      "args": ["--auth-token", "YOUR_SENTRY_TOKEN"]
    }
  }
],

Debugging

You can use the MCP inspector to debug the server:

npx @modelcontextprotocol/inspector mcp-sentry --auth-token YOUR_SENTRY_TOKEN

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • 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.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

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

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

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

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    5 (1)
    Avatar
    user_CH38FtMU
    2025-04-16

    I'm thoroughly impressed with mcp-sentry by elliottlawson. It delivers a seamless integration for monitoring and alerting, making my workflow more efficient. The welcoming interface and clear documentation on the GitHub page (https://github.com/elliottlawson/mcp-sentry) have made setup a breeze. Highly recommend checking it out for anyone in need of robust sentry solutions.