Skip to content

docs: consolidated diagnostics guide + doctor cross-links (#423, part 2) - #436

Merged
debugmcpdev merged 2 commits into
mainfrom
feature/423-diagnostics-docs
Aug 23, 2026
Merged

docs: consolidated diagnostics guide + doctor cross-links (#423, part 2)#436
debugmcpdev merged 2 commits into
mainfrom
feature/423-diagnostics-docs

Conversation

@debugmcpdev

Copy link
Copy Markdown
Collaborator

Part 2 of #423 (part 1, the doctor command, merged as #434). Closes #423.

docs/diagnostics.md

One consolidated reference for what was previously scattered across nine per-language READMEs, CLAUDE.md, and dev docs:

  1. Start here: mcp-debugger doctor — usage, real sample output, --json, the exit-code contract (doctor <languages...> gates; no positionals = informational), and the documented divergence from the server's fail-open behavior (probe.failed/probe.timedOut).
  2. Per-language prerequisites — one 9-row table: runtime + minimum version, debug backend + how it's obtained, install command, env-var overrides; plus the CodeLLDB resolution order (vendored → CODELLDB_PATH → platform package) that doctor's backend column attributes.
  3. Failure signatures — cross-language + per-language Symptom/Cause/Fix tables, mined from the agent-facing skills/debugging/references/*.md so hints match what the tools actually print.
  4. Linux attach & Yama — the ptrace_scope 0–3 semantics doctor's platform check reads, with host/Docker/Kubernetes fixes.
  5. Container modeMCP_CONTAINER / MCP_WORKSPACE_ROOT and the two mount-failure modes doctor catches.
  6. Debugging the debuggerdryRunSpawn, DAP_TRACE/DAP_TRACE_FILE, and log-file locations promoted out of CLAUDE.md/dev docs into user-facing docs for the first time.
  7. Complete environment-variable reference — the first full table (the setup-guide's was missing RUBY_PATH, RDBG_PATH, CODELLDB_PATH, DEBUG_MCP_DISABLE_LANGUAGES, MCP_WORKSPACE_ROOT, MCP_CPP_ALLOW_PREBUILT, CPP_MSVC_BEHAVIOR, DEBUG_MCP_NO_REDACT, and listed DLV_PATH, which the Go adapter never honored — it searches GOBINGOPATH/bin → PATH).

Cross-links

  • README documentation list (🩺 Diagnostics) and a "start with doctor" pointer atop docs/troubleshooting.md (which stays as the narrative FAQ).
  • docs/development/setup-guide.md now points here as the canonical env-var reference, and its DLV_PATH row is corrected to GOBIN.
  • ErrorMessages.launchUnavailable now suggests running mcp-debugger doctor <language> on the server host (existing tests assert the message prefix only — verified green).
  • ROADMAP's environment-self-check theme marked shipped.

🤖 Generated with Claude Code

cynarlab and others added 2 commits August 22, 2026 20:08
docs/diagnostics.md gathers what was previously scattered across nine
per-language READMEs, CLAUDE.md, and dev docs: the doctor command's
usage and exit-code contract, per-language prerequisites with install
commands and env-var overrides, symptom/cause/fix tables (mined from
skills/debugging/references/), Yama ptrace_scope semantics, container
workspace-mount checks, dryRunSpawn/DAP_TRACE/log locations, and the
first complete environment-variable reference (setup-guide's table was
missing RUBY_PATH, RDBG_PATH, CODELLDB_PATH, and five others, and
listed DLV_PATH which the Go adapter never honored — it searches
GOBIN/GOPATH/PATH).

Links: README documentation list, troubleshooting.md pointer,
setup-guide canonical reference, ROADMAP theme marked shipped, and the
launchUnavailable error now suggests running doctor (existing tests
assert the message prefix only, verified green).

Closes #423 (together with the doctor command PR).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@debugmcpdev
debugmcpdev merged commit 17d9ef7 into main Aug 23, 2026
9 checks passed
@debugmcpdev
debugmcpdev deleted the feature/423-diagnostics-docs branch August 23, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: mcp-debugger doctor — environment self-check command + consolidated diagnostics guide

2 participants