@debugbundle/mcp

中文文档
1.23.0发布于 2026/11/11Apache-2.0ES Module构建来源已验证近 30 天下载 3972

MCP server for runtime error reporting, incident response, health checks, debug bundles, and product analytics

原始使用文档
文档目录20 节
  1. Local artifact safety in 1.19.4
  2. Cloud cache safety in 1.19.4
  3. Installation guidance in 1.19.4
  4. Local correlation safety in 1.19.1
  5. Project/service consolidation 1.19.1
  6. Corrective update 1.18.3
  7. Install
  8. MCP Client Config
  9. Install Matrix
  10. Local authentication profile
  11. Codex
  12. Claude Desktop
  13. Claude Code Plugin
  14. Authentication
  15. What Agents Can Do
  16. Troubleshooting
  17. Links
  18. Security And Trust
  19. License
  20. Public status pages

@debugbundle/mcp

Local artifact safety in 1.19.4

Retained bundle and reproduction paths must stay in their canonical local artifact directories. Unsafe metadata returns invalid_local_artifact_path without reading, rewriting or deleting unrelated files. Symlinked files/directories fail closed. Normal local stores and their existing size allowance are preserved; local state and processing writes use guarded atomic replacement. This supersedes earlier clients.

Cloud cache safety in 1.19.4

Upgrade to 1.19.4 for incident-ID validation before cloud requests and cache writes. Unsafe IDs return invalid_incident_id; UUIDs and existing opaque IDs remain supported. Cloud cache reads, writes and retention reject symbolic links; writes use guarded atomic replacement. This corrects a path traversal present in earlier clients.

Installation guidance in 1.19.4

Prefer one project per system across service repositories, reuse existing connections, and keep separate projects for different access or privacy policies. Inspect existing projects before first-time connect; name matching does not infer system membership.

Local correlation safety in 1.19.1

Trace correlation crosses services only within the same project and environment. If an older cache contains mixed retained source events, reads and incremental processing fail with local_incident_scope_mismatch. Preserve the local store, then explicitly rebuild from its retained event files using debugbundle process --preset <minimal|balanced|investigative> with the desired capture preset. This rebuild regenerates local incident/artifact state; it does not change cloud records or the retained event files.

Project/service consolidation 1.19.1

Add logical service context and checked project-merge preview, apply, status, verification, resume and cancellation. Existing identities, credentials and restricted scopes remain compatible. Merge apply requires a qualified compatible core 1.21.0 runtime and remains disabled by default.

Connected doctor diagnostics check API health and saved member authentication with a one-incident probe restricted to cloud_project_id. Missing or blank connected project scope fails before any request. Incident contents are discarded and are not included in the report. Local-only diagnostics make no cloud request.

Connected-workspace incident lists use the saved connection's cloud_project_id unless projectId is explicitly supplied. This also applies to source: "cloud" and every cloud page. An unusable connected project fails with invalid_local_connection_config before the list request; specify the intended project or repair the connection. Local evidence and unconnected account-wide member reads retain their existing behaviour.

MCP server for runtime error reporting, crash reporting, incident response, endpoint health checks, debug bundles, and product analytics. DebugBundle lets agents inspect customer-facing incidents, deterministic bundles, product-usage evidence, reproductions, probes, alerts, webhooks, projects, and setup state through the same management surface as the API and CLI. It is production debugging infrastructure, not a generic infrastructure-monitoring or observability platform.

Corrective update 1.18.3

Connected incident lists now retain their selected cloud project across all pages, including explicit cloud reads. Invalid connected scope fails before the list request. Tool names, schemas, member authentication and local evidence selection remain compatible. The coordinated OpenClaw plugin repairs native ESM loading and adds installed-host/runtime checks; marketplace security acceptance stays separate.

Install

Ordinary authenticated MCP includes account/project notification preferences, channel-specific pause/resume, and daily email scheduling with local time and IANA timezone. These tools use the same permissions and policies as the API and CLI; the hosted read-only and restricted catalogs remain unchanged. See the tool reference.

Run the stdio server directly with npm:

npx @debugbundle/mcp

Or install globally:

npm install -g @debugbundle/mcp
debugbundle-mcp

Supported Node.js versions: 22.x through 26.x.

MCP Client Config

{
  "mcpServers": {
    "debugbundle": {
      "command": "npx",
      "args": ["@debugbundle/mcp"]
    }
  }
}

Use npx -y @debugbundle/mcp in clients that require noninteractive package execution.

Install Matrix

EnvironmentRecommended pathNotes
Generic local MCP clientnpx @debugbundle/mcpstdio transport
Claude Desktop local MCPlocal MCP server configuses local machine auth/config
Claude Code plugin/plugin marketplace add debugbundle/debugbundleinstalls bundled MCP config and DebugBundle skill
Codex developer plugincodex plugin add debugbundle-codex@debugbundlerepository marketplace; local MCP and workflow skill
Codex direct MCPcodex mcp add debugbundle -- npx -y @debugbundle/[email protected] --local-authapp, CLI, and IDE on the same host
CursorMCP config with npx @debugbundle/mcpstdio transport
VS Code / GitHub MCP Registrycom.debugbundle/mcpofficial registry metadata
OpenClaw / ClawHubDebugBundle skill plus MCP configuse the published skill for workflow guidance
CI/headless agentsDEBUGBUNDLE_MEMBER_TOKENnever use a project token
Self-hosted DebugBundleDEBUGBUNDLE_API_URL plus member authpoints the server at your API base URL

This package is the supported public local stdio path. The separate OpenAI Plugin uses an OAuth-protected read-only remote endpoint at https://mcp.debugbundle.com/mcp. Its review/publication process is independent and does not alter this package's catalog or authentication.

Local authentication profile

MCP 1.9.0 adds npx @debugbundle/mcp --local-auth. This opt-in profile removes bearerToken from tool schemas, rejects per-call credentials and unknown fields, and uses only the server's startup CLI/environment member authentication. Hosted tools that require a member token fail with mcp_tool_error:auth_state_missing before an API request when auth is absent; run debugbundle login on that host or configure the server environment and restart the connection. Local-only retrieval remains available without a token. The default invocation preserves the legacy schemas and explicit per-tool token precedence.

Codex

Codex can use the existing stdio server independently of the hosted OpenAI plugin. See the Codex developer package and Codex setup guide for the repository marketplace, direct configuration, authentication, verification, and removal. The repository plugin must be released on the default branch before GitHub installation works; local checkout installation is available for candidate validation.

Claude Desktop

In Claude Desktop, open Settings > Developer, edit the local MCP config, and add:

{
  "mcpServers": {
    "debugbundle": {
      "command": "npx",
      "args": ["-y", "@debugbundle/mcp"]
    }
  }
}

Run debugbundle login first to reuse local CLI auth state, or add DEBUGBUNDLE_MEMBER_TOKEN to the server environment for managed/headless use. Set DEBUGBUNDLE_API_URL only for self-hosted or non-default API hosts.

Claude Code Plugin

Claude Code users can add DebugBundle's first-party marketplace from this repository:

/plugin marketplace add debugbundle/debugbundle
/plugin install debugbundle@debugbundle

The plugin package lives at apps/mcp/claude-code/debugbundle and bundles a Claude Code skill. See the Claude Code setup guide for the plugin's pinned MCP version, direct MCP configuration, authentication, verification, updates, and removal. It is also structured for Claude community marketplace review; do not describe it as listed in claude-community until Anthropic accepts and publishes it.

Authentication

ModeUseNotes
CLI auth stateLocal developer machinesReuses ~/.debugbundle/auth.json when available.
DEBUGBUNDLE_MEMBER_TOKENHeadless or marketplace-managed clientsMember tokens are for CLI/API/MCP read and management operations.
Per-tool bearerTokenExplicit advanced automationOverrides default auth for that call only.
Project tokenSDK ingestion onlyDo not use project tokens for MCP retrieval or management.

What Agents Can Do

  • Read public project acquisition/activation definitions and aggregate reports with list_analytics_flows and get_analytics_flow_report; owners/admins can manage them with save_analytics_flow and archive_analytics_flow. These developer tools use the same project authorization and flow services as API, CLI and web. The separate hosted OpenAI catalog is unchanged.

  • List active incidents and fetch full incident context.

  • Fetch deterministic debug bundles and reproduction artifacts.

  • Discover observed filter choices with get_analytics_filter_options for an authorised project, period, granularity and service/environment. Bounded sets expose values and truncated, with approved custom keys and no generation quota. Empty/unavailable choices must not be replaced with invented defaults. This tool is ordinary MCP only; restricted agent/OpenAI catalogues stay unchanged.

  • Query aggregate usage, routes, device/browser/OS/language segments, referrers, actions, funnels, and journey patterns without waiting for an analysis artifact through get_usage_summary, get_route_metrics, get_device_breakdown, get_action_metrics, get_funnel_analysis, and related reads.

  • Inspect retained redacted journey samples, analytics opportunities, and generated AnalyticsBundles; request a bounded analysis artifact when aggregate metrics alone are insufficient.

  • Read analytics settings before proposing privacy, retention, consent, capture, or approved custom-dimension changes; update them only with explicit owner/admin intent.

  • List saved analytics funnels and, with owner/admin access, create, update, or archive reusable funnel definitions through list_saved_analytics_funnels, create_saved_analytics_funnel, update_saved_analytics_funnel, and archive_saved_analytics_funnel.

  • Inspect hosted health checks, probes, alerts, webhooks, projects, members, billing, capture policy, and GitHub automation state.

  • Run local and hosted verification through tools such as verify_local, verify_cloud, doctor, smoke, and analyze.

verify_app_event provides real SDK-driven app proof, matching the CLI's verify cloud --expect-app-event. Pass projectId and at least one of service, traceId, or requestId; environment, maxAgeMinutes, and authFilePath are optional. It reads existing incidents/bundles and never sends synthetic events. The existing verify_cloud schema and description remain unchanged. The new tool is available through ordinary and local-auth stdio MCP and its OpenClaw projection; hosted read-only and restricted agent catalogs remain unchanged.

  • Resolve or reopen incidents after verification.

For analytics questions, use direct aggregate tools first and generate an AnalyticsBundle only when a bounded analysis needs a durable artifact. The product does not create one bundle per visit.

Troubleshooting

SymptomCheck
Node.js launch failureUse Node.js 22.x through 26.x. Configure the client to use a supported node or npx runtime.
Missing local authRun debugbundle login, or set DEBUGBUNDLE_MEMBER_TOKEN for headless and managed clients.
Invalid tokenUse a dbundle_mem_ member token. Project tokens are SDK ingestion-only credentials.
Wrong API hostLeave DEBUGBUNDLE_API_URL unset for DebugBundle Cloud; set it only for self-hosted or non-default API hosts.
Local repo not initializedRun debugbundle setup before local-only diagnostics, local bundle analysis, or generated project-skill workflows.

Security And Trust

  • Official MCP Registry name: com.debugbundle/mcp.
  • Official npm package: @debugbundle/mcp.
  • Source repository: https://github.com/debugbundle/debugbundle/tree/main/apps/mcp
  • License: Apache-2.0.
  • The server uses stdio transport and local process credentials. It does not include hidden hosted management auth.
  • Public examples must use placeholders only; never paste real member tokens, project tokens, webhook secrets, or customer configuration into marketplace listings.

License

Apache-2.0.

disconnect_github_installation calls the existing organization-wide disconnect route. It requires the active organization's owner and removes repository assignments for all its projects, including cleanup after downgrade. It does not uninstall the App on GitHub. Install/reconnect uses the dashboard browser flow to retain the signed state cookie. The ordinary/local-auth catalog now contains 134 tools; the hosted 23-tool and restricted five-tool profiles remain unchanged.

test_webhook_event accepts all eight supported webhook events through the existing scoped test service. The legacy test_webhook schema remains verification-only. Both queue a signed synthetic envelope without creating real incidents or bundles.

Public status pages

get_public_status_page, list_public_status_page_options, save_public_status_page and preview_public_status_page manage owner-controlled publication through the same API as Project Health. Read the options, select checks explicitly and save {title, enabled, projects:[{project_id, check_ids}]}. A save with enabled: false unpublishes without changing the URL. Publish only on the owner's instruction: selected project/check names and aggregate availability become public; URLs and diagnostics stay private. New checks remain private. The hosted read-only and restricted-agent profiles do not expose publication tools. See the status-page guide.

版本与发布记录

@debugbundle/mcp 共发布 55 个版本,首次发布于 2026/05/06;过去 12 个月发布了 55 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.23.0latest2026/11/11今天
1.22.02026/11/111 天前
1.21.02026/11/092 天前
1.20.02026/11/056 天前
1.19.42026/11/056 天前
1.19.32026/11/056 天前

其他发布通道:next → 0.1.0-next.1。

关于 @debugbundle/mcp 的常见问题

@debugbundle/mcp 是什么?

MCP server for runtime error reporting, incident response, health checks, debug bundles, and product analytics

如何安装 @debugbundle/mcp?

在项目目录运行 npm install @debugbundle/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 debugbundle-mcp,可以用 npx debugbundle-mcp 直接运行。

@debugbundle/mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/debugbundle__mcp 是否存在。

@debugbundle/mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@debugbundle/mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22 <27。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@debugbundle/mcp 可以商用吗?

@debugbundle/mcp 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@debugbundle/mcp 的下载量有多少?

根据 npm 官方下载统计,@debugbundle/mcp 在 2026/10/12 – 2026/11/10 这 30 天内被下载 3,972 次,日均约 132 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@debugbundle/mcp 还在维护吗?

最新版本 1.23.0 发布于 2026/11/11(今天);至今共发布 55 个版本,其中过去 12 个月发布了 55 个;首次发布于 2026/05/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。