TB

tgeselle/bugsnag-mcp

开发工具

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

24 stars 9 forks 质量 60 趋势 0

一个用于与 Bugsnag 交互的模型上下文协议(MCP)服务器。该服务器允许像 Cursor 和 Claude 这样的大型语言模型工具调查和解决 Bugsnag 中的问题。

概览

一个用于与 Bugsnag 交互的模型上下文协议(MCP)服务器。该服务器允许像 Cursor 和 Claude 这样的大型语言模型工具调查和解决 Bugsnag 中的问题。 - : 轻松浏览您的 Bugsnag 层级结构 - : 通过强大过滤选项查找具体问题 - : 查看格式化的栈痕迹,包含源代码上下文和高亮错误行 - : 通过查看完整的异常链来理解根本原因 - : 明确区分您的代码与第三方库 - : 查看错误位置附近的相关代码片段 - : 识别多个错误中的重复模式 - : 按错误类别、消息或应用版本查找问题 - : 获取每个错误的全面信息 - : 查看所有特定错误的发生情况 搭建 Bugsnag MCP 服务器很简单,不需要安装或下载源代码。 1. 添加 Bugsnag MCP 服务器配置: 2. 用你的 Bugsnag API 密钥替换 your-bugsnag-api-key 1. 添加 Bugsnag MCP 服务器配置:

概述(AI 翻译)

一个用于与 Bugsnag 交互的模型上下文协议(MCP)服务器。该服务器允许像 Cursor 和 Claude 这样的大型语言模型工具调查和解决 Bugsnag 中的问题。

✨ 特色

错误监控与分析

  • 组织与项目导航:轻松浏览你的Bugsnag层级结构
  • 错误与事件过滤:查找强大过滤选项的具体问题
  • 详细栈追踪查看:查看带有源代码上下文和高亮错误行的格式化栈追踪
  • 异常链可视化:通过查看完整的异常链来理解根本原因

代码情报

  • 项目代码与库代码区分:明确区分你的代码与第三方库
  • 源代码上下文:查看错误位置附近的相关代码片段
  • 错误模式:识别多次错误中反复出现的模式

议题管理

  • 搜索功能:按错误类别、消息或应用版本查找问题
  • 错误详情:获取每个错误的全面信息
  • 事件历史:查看所有特定错误的发生

🚀 快速布置

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

README

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

Bugsnag MCP Server

A Model Context Protocol (MCP) server for interacting with Bugsnag. This server allows LLM tools like Cursor and Claude to investigate and resolve issues in Bugsnag.

✨ Features

Error Monitoring & Analysis

  • Organization & Project Navigation: Easily browse your Bugsnag hierarchy
  • Error & Event Filtering: Find specific issues with powerful filtering options
  • Detailed Stacktrace Viewing: See formatted stacktraces with source code context and highlighted error lines
  • Exception Chain Visualization: Understand the root cause by viewing the full exception chain

Code Intelligence

  • Project vs. Library Code Distinction: Clearly identify your code vs third-party libraries
  • Source Code Context: View relevant code snippets around error locations
  • Error Patterns: Identify recurring patterns across multiple errors

Issue Management

  • Search Capabilities: Find issues by error class, message, or app version
  • Error Details: Get comprehensive information about each error
  • Event History: View all occurrences of a specific error

🚀 Quick Setup

Setting up the Bugsnag MCP server is simple and doesn’t require any installation or downloading source code.

For Cursor

  1. Add the Bugsnag MCP server configuration:

    {
      "mcpServers": {
        "bugsnag": {
          "command": "npx",
          "args": ["-y", "bugsnag-mcp-server"],
          "env": {
            "BUGSNAG_API_KEY": "your-bugsnag-api-key"
          },
          "disabled": false,
          "alwaysAllow": []
        }
      }
    }
    
  2. Replace your-bugsnag-api-key with your Bugsnag API key

For Claude Desktop

  1. Add the Bugsnag MCP server configuration:

    {
      "mcpServers": {
        "bugsnag": {
          "command": "npx",
          "args": ["-y", "bugsnag-mcp-server"],
          "env": {
            "BUGSNAG_API_KEY": "your-bugsnag-api-key"
          },
          "disabled": false,
          "alwaysAllow": []
        }
      }
    }
    
  2. Replace your-bugsnag-api-key with your Bugsnag API key

🔑 Obtaining a Bugsnag API Key

To use this MCP server, you’ll need a Bugsnag API key:

  1. Log in to your Bugsnag account at https://app.bugsnag.com/
  2. Go to Settings > Organization settings > Access tokens
  3. Create a new personal access token with the following permissions:
    • Read projects
    • Read and write errors
    • Read and write comments
  4. Copy the generated token for use with the MCP server

📋 Usage Examples

Once configured, you can use the Bugsnag MCP server with your LLM tool. Here are some example prompts:

Exploring Your Bugsnag Account

List all my Bugsnag organizations
Show me all projects in organization "org_12345"

Finding and Analyzing Errors

在 GitHub 查看完整 README

安装

npx -y bugsnag-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "bugsnag": { "command": "npx", "args": ["-y", "bugsnag-mcp-server"], "env": { "BUGSNAG_API_KEY": "your-bugsnag-api-key" }, "disabled": false, "alwaysAllow": [] } } }