bugsink-mcp

bugsink-mcp

Full read/write MCP server for Bugsink, letting users view and manage teams, projects, issues, events, and releases, including resolving, muting, reopening, commenting on, and deleting issues.

Category
访问服务器

README

bugsink-mcp

A full read/write MCP server for Bugsink (self-hosted, Sentry-protocol-compatible error tracking), built directly against Bugsink's /api/canonical/0/ OpenAPI schema.

It exists because the existing bugsink-mcp package on npm only wraps the read side of the API (list/get). This one covers the full canonical API surface: resolving, muting, reopening and deleting issues, commenting, and creating/updating teams, projects and releases — plus a couple of correctness fixes over the original (see Fixes over the original).

Setup

Requires Node.js 18.17+.

  1. In Bugsink, go to Account Settings → Auth Tokens and create a token.
  2. Add the server to your MCP client.

Claude Code

One-liner, using the claude mcp CLI:

claude mcp add bugsink \
  -e BUGSINK_URL=https://bugs.example.com \
  -e BUGSINK_TOKEN=<your token> \
  -- npx -y github:fers4t/bugsink-mcp

This writes the equivalent of the following into ~/.claude.json (or pass --scope project to write a shared .mcp.json instead of the user-local config):

{
  "mcpServers": {
    "bugsink": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "github:fers4t/bugsink-mcp"],
      "env": {
        "BUGSINK_URL": "https://bugs.example.com",
        "BUGSINK_TOKEN": "<your token>"
      }
    }
  }
}

Restart Claude Code (or start a new session) afterwards — MCP tool lists are loaded at session start and won't pick up a config change mid-conversation.

Other MCP clients

Any client that reads a mcpServers map (Cursor, Windsurf, etc.) can use the same JSON shape shown above — point it at command: npx, args: ["-y", "github:fers4t/bugsink-mcp"], and the two required env vars.

npx installs straight from GitHub (no npm publish involved) and runs the prepare script to compile TypeScript on first use, then reuses its local cache on subsequent launches.

Environment variables

Variable Required Description
BUGSINK_URL yes Base URL of your Bugsink instance, e.g. https://bugs.example.com
BUGSINK_TOKEN yes Personal API token (Bearer auth)
BUGSINK_TIMEOUT_MS no Per-request timeout in ms (default 15000, clamped to 1000–120000)

See .env.example. Never commit a real token — the server reads it from the environment only.

Tools

Connectivity

Tool Description
test_connection Verify the URL/token work and report how many teams are visible

Teams

Tool Description
list_teams List all teams
get_team Get a team by UUID
create_team Create a team
update_team Rename a team or change its visibility

Projects

Tool Description
list_projects List projects, optionally filtered by team
get_project Get a project (including its DSN), optionally expanding the team
create_project Create a project under a team
update_project Update name/visibility/alert flags/retention/team

Issues

Tool Description
list_issues List issues for a project (sort by digest_order, digested_event_count or last_seen)
get_issue Get an issue by UUID or friendly ID (e.g. PROJ-123)
delete_issue Irreversibly delete an issue and its events
resolve_issue Resolve now
resolve_issue_in_next_release Resolve, regressing if a later release reports it again
resolve_issue_in_latest_release Resolve as of the current latest release
reopen_issue Reopen a resolved issue
mute_issue Mute indefinitely
mute_issue_for Mute for N periods (e.g. 3 days)
mute_issue_until Mute until an event-count threshold is crossed in a period
unmute_issue Unmute
add_issue_comment Add a comment to an issue

Events

Tool Description
list_events List events (occurrences) for an issue
get_event Get full event detail, including tags/contexts/raw payload
get_stacktrace Render a rendered-Markdown stacktrace for an event

Releases

Tool Description
list_releases List releases for a project
get_release Get a release by UUID
create_release Create a release (needed for resolve_issue_in_next_release to regress correctly)

Fixes over the original

  • get_stacktrace actually works. Bugsink's stacktrace endpoint returns text/markdown, not JSON. The original package called res.json() unconditionally and threw Unexpected token '#', "# TypeError"... is not valid JSON on every call. This server reads that endpoint as text.
  • Write support: resolve/mute/reopen/delete/comment on issues, and create/update for teams, projects and releases — none of which the read-only original exposed.
  • Bounded timeouts (AbortSignal.timeout, default 15s) on every request, so a hung upstream can't hang the MCP process indefinitely.
  • Safe retries: idempotent GET requests get a bounded exponential-backoff-with-jitter retry on 502/503/504 or network failure. Mutating requests (POST/PATCH/DELETE) are never auto-retried, since retrying a write whose response was merely lost could duplicate side effects (e.g. a second identical comment).
  • Input validation via Zod on every tool argument (numeric IDs, UUIDs, enums), so malformed input is rejected locally with a clear message instead of reaching the API.
  • No secrets in output. Errors report the HTTP status and a truncated response body; the Authorization header value is never included in any log or thrown error.

Security notes

  • This is a local stdio process — it does not open a network listener. Access control is whatever your MCP client already provides plus possession of BUGSINK_TOKEN.
  • All diagnostics go to stderr; stdout is reserved for the JSON-RPC protocol stream.
  • BUGSINK_URL must be http: or https:; plain HTTP to a non-local host prints a warning (your token would be sent unencrypted) but is not blocked, to support internal networks.
  • Treat BUGSINK_TOKEN like any other credential: keep it out of version control, rotate it in Bugsink if it ever leaks, and scope it to the least-privileged user your workflow allows.

Development

npm install     # installs deps and runs the TypeScript build (prepare script)
npm run typecheck
npm run build   # compile src/ -> dist/
npm run dev     # watch mode

License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选