Honeybadger MCP Server

Honeybadger MCP Server

Integrates Honeybadger error tracking with Cursor IDE, allowing developers to fetch, analyze, and troubleshoot application errors directly from their development environment.

Category
访问服务器

README

Honeybadger MCP Server Setup Guide

This MCP server integrates Honeybadger error tracking with Cursor IDE, allowing you to fetch and analyze errors directly from your development environment.

Prerequisites

  • Node.js 18+ installed
  • Honeybadger account with API access
  • Cursor IDE with MCP support

Installation

1. Clone the MCP Server

git clone git@github.com:vishalzambre/honeybadger-mcp.git
cd honeybadger-mcp
npm install

2. Build the Project

npm run build

3. Using as an NPM Package (Recommended)

Global Installation:

npm install -g honeybadger-mcp

Then configure it in Cursor:

{
  "mcpServers": {
    "honeybadger": {
      "command": "honeybadger-mcp",
      "env": {
        "HONEYBADGER_API_KEY": "your_api_key_here",
        "HONEYBADGER_PROJECT_ID": "your_project_id"
      }
    }
  }
}

Project-based Installation (Alternative):

If you prefer to manage the MCP server as a project dependency:

npm install honeybadger-mcp

In this case, the command in your Cursor mcp_servers.json would point to the local installation within your project's node_modules:

{
  "mcpServers": {
    "honeybadger": {
      "command": "node",
      "args": ["./node_modules/honeybadger-mcp/dist/index.js"],
      "env": {
        "HONEYBADGER_API_KEY": "your_api_key_here",
        "HONEYBADGER_PROJECT_ID": "your_project_id"
      }
    }
  }
}

4. Configure Environment Variables

Create a .env file in your project root:

# Required: Your Honeybadger API key
HONEYBADGER_API_KEY=your_api_key_here

# Optional: Default project ID (can be overridden per request)
HONEYBADGER_PROJECT_ID=your_project_id

# Optional: Custom Honeybadger URL (defaults to https://app.honeybadger.io)
HONEYBADGER_BASE_URL=https://app.honeybadger.io

4. Get Your Honeybadger Credentials

  1. API Key:

    • Go to https://app.honeybadger.io/users/auth_tokens
    • Create a new Personal Auth Token
    • Copy the token for your .env file
  2. Project ID:

    • Go to your project in Honeybadger
    • The project ID is in the URL: https://app.honeybadger.io/projects/{PROJECT_ID}
    • Or find it in project settings

Cursor Configuration

1. Configure MCP in Cursor

Add the MCP server to your Cursor configuration. Edit your ~/.cursor/mcp_servers.json (or equivalent):

{
  "mcpServers": {
    "honeybadger": {
      "command": "node",
      "args": ["/path/to/honeybadger-mcp/dist/index.js"],
      "env": {
        "HONEYBADGER_API_KEY": "your_api_key_here",
        "HONEYBADGER_PROJECT_ID": "your_project_id"
      }
    }
  }
}

2. Alternative: Global Installation

This section will be updated or removed as it's now covered above. If you prefer the old way of cloning and installing globally from a local path, you can still do so, but using the published npm package is recommended for easier updates and management.

If installing from a local clone:

# Navigate to your cloned honeybadger-mcp directory
npm install -g . # Installs from the current directory

# Then configure in Cursor as before
# ... (Cursor configuration for local global install)

Usage

Once configured, you can use these tools in Cursor:

1. List Recent Faults

List recent unresolved errors from Honeybadger in production environment

2. Get Specific Fault Details

Get details for Honeybadger fault ID 12345

3. Analyze an Issue

Analyze Honeybadger issue 12345 and provide fix suggestions

4. Get Error Occurrences

Get the latest 5 occurrences for Honeybadger fault 12345

Available Tools

list_honeybadger_faults

Lists recent faults with optional filtering by environment and resolved status.

Parameters:

  • project_id (optional): Project ID
  • limit (optional): Number of faults (default: 20, max: 100)
  • environment (optional): Filter by environment
  • resolved (optional): Filter by resolved status

get_honeybadger_fault

Fetches detailed information about a specific fault.

Parameters:

  • fault_id (required): The fault ID
  • project_id (optional): Project ID

get_honeybadger_notices

Fetches notices (error occurrences) for a specific fault.

Parameters:

  • fault_id (required): The fault ID
  • project_id (optional): Project ID
  • limit (optional): Number of notices (default: 10, max: 100)

analyze_honeybadger_issue

Provides comprehensive analysis with fix suggestions.

Parameters:

  • fault_id (required): The fault ID
  • project_id (optional): Project ID
  • include_context (optional): Include request context (default: true)

Example Workflow

  1. List recent errors: "Show me the latest unresolved errors from production"
  2. Analyze specific error: "Analyze Honeybadger fault 12345 and suggest fixes"
  3. Get error context: "Get the latest occurrences for fault 12345 with full context"
  4. Review and fix: Use the analysis to understand and fix the issue in your code

Troubleshooting

Common Issues

  1. Authentication Error: Verify your API key is correct and has proper permissions
  2. Project Not Found: Check your project ID is correct
  3. Connection Issues: Verify network access to Honeybadger API

Debug Mode

Run the server directly to see error messages:

node dist/index.js

Logs

Check Cursor logs for MCP-related issues:

  • macOS: ~/Library/Logs/Cursor/
  • Windows: %APPDATA%\Cursor\logs\
  • Linux: ~/.config/Cursor/logs/

Security Notes

  • Store API keys securely and never commit them to version control
  • Use environment-specific API keys when possible
  • Consider using read-only API tokens for this integration
  • Regularly rotate your API keys

Contributing

To extend this MCP server:

  1. Add new tools in the setupToolHandlers() method
  2. Implement corresponding handler methods
  3. Update the tool list and documentation
  4. Test thoroughly with your Honeybadger setup

Support

For issues with:

  • This MCP server: Check the code and configuration
  • Honeybadger API: Refer to Honeybadger API docs
  • Cursor MCP integration: Check Cursor documentation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选