Skip to main content

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 Python 3.10+ MCP Ready 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 git+https://github.com/reillywalter/win-dev-doctor

# Or clone & run locally
git clone https://github.com/reillywalter/win-dev-doctor.git
cd win-dev-doctor
uv sync

Usage

Run all health checks

wdd check
wdd check --verbose
wdd check --only path,env,long-paths,git
wdd check --json

Generate a shareable Markdown report (auto-redacts username)

wdd report -o doctor-report.md

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 your Windows PATH

wdd path               # Missing dirs, duplicates, shadowed binaries
wdd path --all         # Full resolution order

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)

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.

Add to your MCP config (claude_desktop_config.json, .mcp.json, or Cursor MCP settings):

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

Built-in Checks

ID Category What it checks
path environment Missing folders, duplicate entries, shadowed dev binaries in PATH
env environment TEMP/TMP validity, global PYTHONHOME/PYTHONPATH leaks, active proxies
long-paths windows LongPathsEnabled registry flag (>260 char paths)
symlinks windows Developer Mode & non-admin symlink creation
tools toolchain Installed versions of git, python, uv, node, rustc, go, docker, winget, pwsh
git toolchain Global identity, core.longpaths, core.autocrlf
wsl windows WSL availability and installed Linux distros
ports runtime Active processes occupying common local dev ports
caches disk Reclaimable disk space across package manager caches
defender performance Windows 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

Metadata

Release files for win-dev-doctor 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for win-dev-doctor 0.2.0
File Size Uploaded Provenance Actions
win_dev_doctor-0.2.0.tar.gz 55.7 kB Without provenance Details for win_dev_doctor-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for win-dev-doctor 0.2.0
File Interpreter ABI Platform Actions
win_dev_doctor-0.2.0-py3-none-any.whl Python 3 none any Details for win_dev_doctor-0.2.0-py3-none-any.whl

Total release size: 84.1 kB

Release files / win_dev_doctor-0.2.0.tar.gz

Download URL win_dev_doctor-0.2.0.tar.gz
Size 55.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dd9f466c554a848af8408226819ebd4c093918a591f4741cecb9a470e8b53e80
BLAKE2b-256 checksum
How to use checksums
5c6932b40d066189ff21621d158ad1bccb617e31c1343ef6e624bb075f650265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / win_dev_doctor-0.2.0-py3-none-any.whl

Download URL win_dev_doctor-0.2.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
741e16ec7198ad3ec21c36715b6e8dcf2153da8a31a57467685786075aa24773
BLAKE2b-256 checksum
How to use checksums
f650df2ef7326363f142bf0b60e1a5b6768f03408eb0b8a812c6a2f910e76c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for win-dev-doctor 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page