
Honeybadger
STDIOCursor IDE中的Honeybadger错误追踪集成工具
Cursor IDE中的Honeybadger错误追踪集成工具
This MCP server integrates Honeybadger error tracking with Cursor IDE, allowing you to fetch and analyze errors directly from your development environment.
git clone [email protected]:vishalzambre/honeybadger-mcp.git cd honeybadger-mcp npm install
npm run build
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" } } } }
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
API Key:
.env
fileProject ID:
https://app.honeybadger.io/projects/{PROJECT_ID}
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" } } } }
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)
Once configured, you can use these tools in Cursor:
List recent unresolved errors from Honeybadger in production environment
Get details for Honeybadger fault ID 12345
Analyze Honeybadger issue 12345 and provide fix suggestions
Get the latest 5 occurrences for Honeybadger fault 12345
list_honeybadger_faults
Lists recent faults with optional filtering by environment and resolved status.
Parameters:
project_id
(optional): Project IDlimit
(optional): Number of faults (default: 20, max: 100)environment
(optional): Filter by environmentresolved
(optional): Filter by resolved statusget_honeybadger_fault
Fetches detailed information about a specific fault.
Parameters:
fault_id
(required): The fault IDproject_id
(optional): Project IDget_honeybadger_notices
Fetches notices (error occurrences) for a specific fault.
Parameters:
fault_id
(required): The fault IDproject_id
(optional): Project IDlimit
(optional): Number of notices (default: 10, max: 100)analyze_honeybadger_issue
Provides comprehensive analysis with fix suggestions.
Parameters:
fault_id
(required): The fault IDproject_id
(optional): Project IDinclude_context
(optional): Include request context (default: true)Run the server directly to see error messages:
node dist/index.js
Check Cursor logs for MCP-related issues:
~/Library/Logs/Cursor/
%APPDATA%\Cursor\logs\
~/.config/Cursor/logs/
To extend this MCP server:
setupToolHandlers()
methodFor issues with: