BugHerd MCP Servers
MCP (Model Context Protocol) servers for working with BugHerd from AI clients.
This repo ships two entrypoints:
Admin server: bugherd-admin-mcp
- Broad BugHerd API v2 coverage (projects, tasks, columns, comments, attachments, webhooks)
- Transports: stdio (default) and HTTP/SSE (shared mode)
- Includes destructive operations (delete project/attachment/webhook)
Transport details: see below (stdio vs HTTP/SSE).
Project worker server: bugherd-project-worker-mcp
Designed for an AI client that operates inside a single project.
- Project scope is fixed by
BUGHERD_PROJECT_ID(the client never needs it) - Only a small, task-focused tool surface
- No tools for projects/users/attachments/webhooks
- Task updates are limited to status moves only
- Output is truncated to reduce context overflow
Project worker tools
columns_list— list project columns withidandnametasks_list— list tasks (maxBUGHERD_PAGE_SIZEper call) + pagination cursorstask_get— task details bylocal_task_id(description chunk +description_next_cursor)task_description_more— aux: read long description in chunks (next_cursoror numericoffset)task_move_status— move task to a column byto_column_idcomments_list— list comments (maxBUGHERD_PAGE_SIZEper call) + pagination cursorscomment_add— add a comment asBUGHERD_BOT_USER_ID(max 2000 chars)
Project worker resources
bugherd://columns— JSON with columns and config hints
Installation
Prereqs:
- Node.js 18+
- BugHerd API key (
BUGHERD_API_KEY)
Recommended: Use npx (no install)
This runs the package and executes the CLI from its bin entry.
# Admin server (from npm) BUGHERD_API_KEY=your-api-key npx -p bugherd-mcp bugherd-admin-mcp # Admin server (directly from GitHub) BUGHERD_API_KEY=your-api-key \ npx -p git+https://github.com/devmanorg/bugherd-mcp.git bugherd-admin-mcp # Project worker server (from npm) BUGHERD_API_KEY=your-api-key \ BUGHERD_PROJECT_ID=123 \ BUGHERD_BOT_USER_ID=456 \ npx -p bugherd-mcp bugherd-project-worker-mcp # Project worker server (directly from GitHub) BUGHERD_API_KEY=your-api-key \ BUGHERD_PROJECT_ID=123 \ BUGHERD_BOT_USER_ID=456 \ npx -p git+https://github.com/devmanorg/bugherd-mcp.git bugherd-project-worker-mcp
Option B: Install locally (dev)
Option C: Install globally
npm i -g bugherd-mcp # or from this repo: # npm i -g . BUGHERD_API_KEY=your-api-key bugherd-admin-mcp
Configuration (Opencode)
Recommended: configure Opencode to launch the server via npx.
Admin server (stdio)
~/.opencode.json (or project-local ./.opencode.json):
Project worker server (stdio)
Notes:
BUGHERD_ACTIVE_COLUMN_IDSis an optional comma-separated hint/filter (e.g."10,11,12").tasks_list.sortis required. Sorting is applied within the fetched page.
Transport
Both servers support:
- stdio (default): no
PORTenv var; one process per client session - HTTP/SSE: set
PORT; one long-lived server can serve multiple sessions
Health endpoint (HTTP mode): GET /health
Development
Install deps:
Run with auto-reload on changes:
npm run dev:mcp:admin npm run dev:mcp:project-worker
HTTP/SSE mode (handy for debugging):
npm run dev:mcp:admin:http npm run dev:mcp:project-worker:http
Docker
Build image
docker build -t bugherd-mcp:local .Run admin server (HTTP/SSE)
docker run --rm -p 3003:3003 \ -e PORT=3003 \ -e BUGHERD_API_KEY=your-api-key \ bugherd-mcp:local
Run project worker (HTTP/SSE)
docker run --rm -p 3004:3004 \ -e PORT=3004 \ -e BUGHERD_API_KEY=your-api-key \ -e BUGHERD_PROJECT_ID=123 \ -e BUGHERD_BOT_USER_ID=456 \ --entrypoint node bugherd-mcp:local dist/bugherd-project-worker-mcp.js
Docker Compose (recommended for local dev)
cp .env.example .env
# edit .env then:
docker compose up --buildAcknowledgements
This project was originally based on https://github.com/Berckan/bugherd-mcp and has since been significantly reworked and extended. It is now maintained as an independent project. Thanks to the original author for the initial implementation.