Repository avatar
Other Tools
v0.3.2
active

win-dev-doctor

io.github.reillywalter/win-dev-doctor

Fast, modular Windows dev diagnostics CLI and zero-dependency stdio MCP server.

Documentation

win-dev-doctor (wdd)

Fast, modular CLI & MCP doctor for Windows developers — audit PATH, kill stuck ports, inspect Windows dev config, reclaim gigabytes of cache space, and connect straight to Claude Code / Cursor / Antigravity via MCP.

CI PyPI version PyPI downloads Python 3.10+ MCP Ready Glama MCP Server License: MIT

win-dev-doctor terminal demo

Why?

Developing on Windows comes with recurring friction:

  • "Port 3000 is already in use" -> hunting PIDs with netstat -ano | findstr + Task Manager.
  • Broken, duplicated, or shadowed python.exe / node.exe entries in PATH.
  • MAX_PATH (260-char) crashes in git, cargo, pip, or node_modules.
  • Symlink errors because Developer Mode is off.
  • Slow builds because Windows Defender scans repos/ and .cargo/.
  • Gigabytes silently buried in pip, uv, npm, pnpm, cargo, and gradle caches.

wdd catches and fixes all of them from one tiny CLI — and exposes the same diagnostics as an MCP server so your AI coding agent can troubleshoot Windows for you.

Install

# With uv (recommended)
uv tool install win-dev-doctor

# Or run instantly without installing
uvx --from win-dev-doctor wdd check

# Or with pip
pip install win-dev-doctor

Usage

Run all health checks

wdd check
wdd check --verbose
wdd check --only path,env,long-paths,git
wdd check --json
wdd check --strict      # Exit with code 1 on WARN or FAIL

Use --strict in CI or pre-commit hooks when warnings should fail the check. It also works with --json, which still prints the full report.

Generate a shareable Markdown or HTML report (auto-redacts username)

wdd report -o doctor-report.md
wdd report -o doctor-report.html

Inspect & kill stuck ports

wdd ports              # Common dev ports (3000, 5173, 8000, 8080, ...)
wdd ports --all        # Every listening TCP port
wdd kill 3000          # Gracefully terminate whatever owns port 3000
wdd kill 3000 -f -y    # Force-kill without prompt

Audit & fix your Windows PATH and Git config

wdd path               # Missing dirs, duplicates, shadowed binaries
wdd path --all         # Full resolution order
wdd path --fix         # Back up and remove missing/duplicate user PATH entries
wdd fix --dry-run      # Preview PATH & Git fixes before applying
wdd fix                # Apply fixes with automatic JSON backup
wdd fix --rollback     # Restore the previous PATH & Git config

Reclaim developer cache space

wdd clean --dry-run    # Preview pip, uv, npm, pnpm, yarn, cargo, ruff, gradle, nuget
wdd clean              # Interactive cleanup
wdd clean -t pip,uv -y # Clean specific caches immediately

MCP Server (for Claude Code / Cursor)

win-dev-doctor MCP server

Run wdd mcp to start a zero-dependency stdio MCP server exposing run_health_check, inspect_path, list_ports, kill_port, scan_caches, and clean_caches. You can also browse its tools and score on Glama.

Auto-configure Claude Desktop, Claude Code, Cursor, or VS Code in one command (creates a .bak backup before editing):

wdd setup --dry-run                       # Preview detected AI clients
wdd setup                                 # Register in detected clients
wdd setup --client claude-desktop,cursor  # Target specific clients

Or add manually to your MCP config (claude_desktop_config.json, .mcp.json, or Cursor MCP settings):

{
  "mcpServers": {
    "win-dev-doctor": {
      "command": "uvx",
      "args": ["--from", "win-dev-doctor", "wdd", "mcp"]
    }
  }
}

Or if wdd is already installed globally (uv tool install win-dev-doctor):

{
  "mcpServers": {
    "win-dev-doctor": {
      "command": "wdd",
      "args": ["mcp"]
    }
  }
}

Built-in Checks

IDCategoryWhat it checks
pathenvironmentMissing folders, duplicate entries, shadowed dev binaries in PATH
envenvironmentTEMP/TMP validity, global PYTHONHOME/PYTHONPATH leaks, active proxies
long-pathswindowsLongPathsEnabled registry flag (>260 char paths)
symlinkswindowsDeveloper Mode & non-admin symlink creation
toolstoolchainInstalled versions of git, python, uv, node, rustc, go, docker, winget, pwsh
node-managerstoolchainDetects nvm-windows, fnm, and volta and warns when multiple conflict on PATH
gittoolchainGlobal identity, core.longpaths, core.autocrlf
git-credtoolchainChecks global credential.helper and warns if unset or using plain-text store
wslwindowsWSL availability and installed Linux distros
portsruntimeActive processes occupying common local dev ports
cachesdiskReclaimable disk space across package manager caches
defenderperformanceWindows Defender exclusions for common dev folders

Contributing (1 File = 1 Check)

Want to add a check for MSVC Build Tools, Docker/WSL2 memory limits, OpenSSH Agent, Scoop, or VS Code?

Drop a single file in src/win_dev_doctor/checks/ subclassing BaseCheck — the registry discovers it automatically. Check open good first issue tickets and CONTRIBUTING.md.

License

MIT

PYPI
win-dev-doctor
Install Command
pip install win-dev-doctor
Runtime: uvx