MCP (Model Context Protocol) servers for working with BugHerd from AI clients.
This repo ships two entrypoints:
- 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).
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
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)
bugherd://columns— JSON with columns and config hints
Prereqs:
- Node.js 18+
- BugHerd API key (
BUGHERD_API_KEY)
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-mcpnpm ci
npm run buildnpm i -g bugherd-mcp
# or from this repo:
# npm i -g .
BUGHERD_API_KEY=your-api-key bugherd-admin-mcpRecommended: configure Opencode to launch the server via npx.
~/.opencode.json (or project-local ./.opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"bugherd": {
"type": "local",
"command": [
// Local build option:
// "node", "/absolute/path/to/bugherd-mcp/dist/bugherd-project-worker-mcp.js",
"npx",
"-p",
"git+https://github.com/devmanorg/bugherd-mcp.git",
"bugherd-project-worker-mcp",
],
"environment": {
"BUGHERD_API_KEY": "your-api-key",
"BUGHERD_PROJECT_ID": "505337",
"BUGHERD_BOT_USER_ID": "584998",
"BUGHERD_PAGE_SIZE": "30",
"BUGHERD_DESCRIPTION_MAX_CHARS": "4000",
"BUGHERD_AGENT_SIGNATURE": "🤖 AI-агент",
"BUGHERD_AGENT_SIGNATURE_SEPARATOR": "\\n\\n---\\n",
"BUGHERD_ACTIVE_COLUMN_IDS": ""
},
}
}
}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.
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
Install deps:
npm ciRun with auto-reload on changes:
npm run dev:mcp:admin
npm run dev:mcp:project-workerHTTP/SSE mode (handy for debugging):
npm run dev:mcp:admin:http
npm run dev:mcp:project-worker:httpdocker build -t bugherd-mcp:local .docker run --rm -p 3003:3003 \
-e PORT=3003 \
-e BUGHERD_API_KEY=your-api-key \
bugherd-mcp:localdocker 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.jscp .env.example .env
# edit .env then:
docker compose up --buildThis 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.
{ "$schema": "https://opencode.ai/config.json", "mcp": { "bugherd": { "type": "local", "command": [ // Local build option: // "node", "/absolute/path/to/bugherd-mcp/dist/bugherd-admin-mcp.js", "npx", "-p", "git+https://github.com/devmanorg/bugherd-mcp.git", "bugherd-admin-mcp", ], "environment": { "BUGHERD_API_KEY": "your-api-key", }, } } }