Cover image
Try Now
2025-04-05

用于自托管哨兵的MCP服务器。

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

sentry-selfhosted-mcp

A Model Context Protocol (MCP) server designed specifically for interacting with self-hosted Sentry instances.

Overview

This server provides tools to retrieve information and perform actions on issues within a self-hosted Sentry setup. It reads the Sentry instance URL, authentication token, and organization slug from environment variables.

Available Tools

The following tools are available:

  1. get_sentry_issue

    • Description: Retrieve details for a specific Sentry issue by ID or URL.
    • Input: { "issue_id_or_url": "string" } (e.g., "12345" or "https://sentry.example.com/organizations/org/issues/12345/")
  2. list_sentry_projects

    • Description: List all projects within the configured Sentry organization.
    • Input: {} (No arguments needed)
  3. list_sentry_issues

    • Description: List issues for a specific project, optionally filtering by query or status.
    • Input: { "project_slug": "string", "query": "string" (optional), "status": "resolved" | "unresolved" | "ignored" (optional) }
  4. get_sentry_event_details

    • Description: Retrieve details for a specific event ID within a project.
    • Input: { "project_slug": "string", "event_id": "string" }
  5. update_sentry_issue_status

    • Description: Update the status of a Sentry issue.
    • Input: { "issue_id": "string", "status": "resolved" | "ignored" | "unresolved" }
  6. create_sentry_issue_comment

    • Description: Add a comment to a Sentry issue.
    • Input: { "issue_id": "string", "comment_text": "string" }

Installation & Setup

  1. Clone/Place Project: Clone this repository or place the project files in your desired location.
  2. Install Dependencies: Navigate into the project directory (sentry-selfhosted-mcp) and run:
    cd <path/to/sentry-selfhosted-mcp>
    npm install
    
  3. Build Server: Compile the TypeScript code from the project directory:
    npm run build
    
    This creates the executable JavaScript file in the build/ directory.

Configuration

This server requires the following environment variables to be set:

  • SENTRY_URL: The base URL of your self-hosted Sentry instance (e.g., https://sentry.beoflow.app).
  • SENTRY_AUTH_TOKEN: Your Sentry API authentication token (ensure it has necessary scopes like issue:read, project:read, event:read, issue:write, comment:write).
  • SENTRY_ORG_SLUG: The slug of your Sentry organization (e.g., beoflow).

Example MCP Client Configuration:

Add the following entry to your MCP client's configuration file (e.g., cline_mcp_settings.json for the VS Code extension, claude_desktop_config.json for Claude.app):

    "sentry-selfhosted-mcp": {
      "command": "node",
      "args": [
        "<full/path/to/sentry-selfhosted-mcp/build/index.js>"
      ],
      "env": {
        "SENTRY_URL": "YOUR_SENTRY_URL",
        "SENTRY_AUTH_TOKEN": "YOUR_SENTRY_AUTH_TOKEN",
        "SENTRY_ORG_SLUG": "YOUR_SENTRY_ORG_SLUG"
      },
      "disabled": false,
      "autoApprove": [],
      "transportType": "stdio"
    }

Replace YOUR_SENTRY_URL, YOUR_SENTRY_AUTH_TOKEN, and YOUR_SENTRY_ORG_SLUG with your actual values.

After updating the settings file, the MCP client should automatically connect to the server.

相关推荐

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

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

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

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

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

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

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

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

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

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

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

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

    Reviews

    5 (1)
    Avatar
    user_cXZwgRu5
    2025-04-17

    I have been using sentry-selfhosted-mcp by ddfourtwo, and it has significantly improved our error tracking and monitoring process. The setup is straightforward, and self-hosting ensures full control over our data. The detailed documentation and active community support make it a reliable choice for any team looking to enhance their debugging capabilities. Highly recommended for developers!