Labsco
bobtista logo

Honeybadger

β˜… 1

from bobtista

Interact with the Honeybadger API for error monitoring and reporting using LLMs.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

Honeybadger MCP Server

A Model Context Protocol (MCP) server implementation for interacting with the Honeybadger API. This server allows AI agents to fetch and analyze error data from your Honeybadger projects.

Overview

This MCP server provides a bridge between AI agents and the Honeybadger error monitoring service. It follows the best practices laid out by Anthropic for building MCP servers, allowing seamless integration with any MCP-compatible client.

Features

The server provides two essential tools for interacting with Honeybadger:

  1. list_faults: List and filter faults from your Honeybadger project

    • Search by text query
    • Filter by creation or occurrence timestamps
    • Sort by frequency or recency
    • Paginate results
  2. get_fault_details: Get detailed information about specific faults

    • Filter notices by creation time
    • Paginate through notices
    • Results ordered by creation time descending

Integration with MCP Clients

SSE Configuration

Once you have the server running with SSE transport, you can connect to it using this configuration:

{
  "mcpServers": {
    "honeybadger": {
      "transport": "sse",
      "url": "http://localhost:8050/sse"
    }
  }
}

Claude Desktop Configuration

Using SSE Transport (Recommended)

First, start the server:

honeybadger-mcp-server --api-key your-key --project-id your-project

Then add to your Claude Desktop config:

{
  "mcpServers": {
    "honeybadger": {
      "transport": "sse",
      "url": "http://localhost:8050/sse"
    }
  }
}

Using Stdio Transport

Add to your Claude Desktop config:

{
  "mcpServers": {
    "honeybadger": {
      "command": "uv",
      "args": [
        "run",
        "--project",
        "/path/to/honeybadger-mcp",
        "src/honeybadger_mcp_server/server.py",
        "--transport",
        "stdio",
        "--api-key",
        "YOUR-API-KEY",
        "--project-id",
        "YOUR-PROJECT-ID"
      ]
    }
  }
}

Docker Configuration

{
  "mcpServers": {
    "honeybadger": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "honeybadger/mcp",
        "--transport",
        "stdio",
        "--api-key",
        "YOUR-API-KEY",
        "--project-id",
        "YOUR-PROJECT-ID"
      ]
    }
  }
}

Development

Running Tests

# Install dev dependencies
uv pip install -e ".[dev]"

# Run tests
pytest

Code Quality

# Run type checker
pyright

# Run linter
ruff check .

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.