Win-dev-doctor – Fast CLI and zero-dep MCP doctor for Windows dev
Win-dev-doctor (wdd) bundles 12 Windows diagnostics, port killing, PATH repair, cache cleanup, and a zero-dependency MCP server into one MIT-licensed CLI.
By Dillip Chowdary • Dec 06, 2026 • Source: github.com

At a glance
- Product
- win-dev-doctor (wdd)
- Developer
- Reilly Walter
- License
- MIT
- Built-in checks
- 12 modules across 6 categories
- MCP tools
- 8 stdio tools, zero dependencies
- Install methods
- uv tool install, uvx, pip
In this post
Reilly Walter has released win-dev-doctor, an open-source command-line diagnostic tool and Model Context Protocol server built to troubleshoot Windows development environments, as detailed on the win-dev-doctor GitHub repository. Known by its CLI command wdd, the utility audits environment variables, terminates processes holding local ports, repairs PATH and Git settings, and reclaims disk space across package manager caches. It also exposes those same diagnostics through a zero-dependency stdio MCP server so AI coding agents such as Claude Code, Cursor, and Antigravity can inspect and fix Windows machines directly.
This article breaks down how win-dev-doctor works, its built-in diagnostic modules, its cache and port management commands, and how it integrates with desktop AI clients. It is written for Windows software engineers tired of manual system troubleshooting, DevOps maintainers looking for strict CI environment checks, and developers configuring local MCP tooling.
01Windows developer friction and CLI diagnostics
Setting up a development workflow on Windows often involves recurring system bottlenecks that force engineers into manual workarounds. Common failures include "Port 3000 is already in use" errors that require hunting process IDs with netstat and Task Manager, broken or shadowed python.exe and node.exe entries in PATH, 260-character MAX_PATH crashes across git, cargo, pip, and node_modules, symlink failures when Developer Mode is disabled, and slow builds caused by Windows Defender scanning repos and .cargo directories.
Developers can install win-dev-doctor via the recommended uv tool install win-dev-doctor command, install it with pip install win-dev-doctor, or run it immediately without installation using uvx --from win-dev-doctor wdd check. Once invoked, wdd list displays registered check metadata in a human-readable table, while wdd list --json outputs a JSON array containing each check's id, category, name, and description without executing the diagnostics.
Running wdd check executes the full suite, with flags for verbose output, targeted modules via --only path,env,long-paths,git, machine-readable --json output, and --no-color for plain-text logs. Teams can also generate shareable Markdown or HTML summaries using wdd report -o doctor-report.md or doctor-report.html, which automatically redact the local username.
Note: Passing --strict to wdd check causes the CLI to exit with code 1 on any WARN or FAIL status, making it suitable for CI pipelines or pre-commit hooks while still printing the full report when paired with --json.
02Port termination, PATH repairs, and cache cleanup
Beyond passive inspection, wdd provides interactive and automated remediation for stuck network ports and misconfigured environment paths. Engineers can run wdd ports to inspect common development ports such as 3000, 5173, 8000, and 8080, add --all to list every listening TCP port, or pass --watch for a live-refreshing view. Calling wdd kill 3000 gracefully terminates the owning process, while adding -f -y force-kills it without a confirmation prompt.
For environment and Git hygiene, wdd path identifies missing directories, duplicate entries, and shadowed binaries, and wdd path --all prints the complete resolution order. Running wdd path --fix backs up and removes missing or duplicate user PATH entries, whereas wdd fix handles broader PATH and Git repairs. Engineers can preview changes with wdd fix --dry-run, apply them with an automatic JSON backup via wdd fix, or revert to the previous state using wdd fix --rollback.
Package manager caches silently consume gigabytes of disk space on Windows machines, and wdd clean targets nine ecosystems: pip, uv, npm, pnpm, yarn, cargo, ruff, gradle, and nuget. Users can preview reclaimable space with wdd clean --dry-run, launch an interactive cleanup with wdd clean, or target specific tools immediately using flags such as wdd clean -t pip,uv -y.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Zero-dependency MCP server and client setup
To bring these diagnostics into AI-assisted workflows, running wdd mcp starts a zero-dependency stdio MCP server. The server exposes eight tools to connected agents: run_health_check, inspect_path, list_ports, kill_port, scan_caches, clean_caches, preview_fixes, and generate_report. The server's tools and score are also listed on Glama for inspection.
Developers can inspect detected AI clients and configuration file paths using wdd config, then register the server automatically across Claude Desktop, Claude Code, Cursor, or VS Code with wdd setup. Previewing changes is supported via wdd setup --dry-run, and users can limit registration to specific tools with flags like wdd setup --client claude-desktop,cursor. Every automated edit creates a .bak backup file before modifying existing client configurations.
Manual setup is also supported by editing claude_desktop_config.json, .mcp.json, or Cursor MCP settings directly. Environments without a global install can configure the win-dev-doctor MCP entry to invoke uvx with the --from win-dev-doctor wdd mcp arguments, while machines with a global uv tool installation can point the command directly to wdd with the mcp argument.
04Twelve built-in checks across four categories
The core diagnostic engine ships with twelve built-in checks organized across environment, windows, toolchain, runtime, disk, and performance categories. Each module targets a specific failure mode common to Windows workstations, from registry-level path limits to conflicting Node.js version managers.
| Check ID | Category | What it inspects |
|---|---|---|
| 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 for paths over 260 characters |
| symlinks | windows | Developer Mode and non-admin symlink creation |
| tools | toolchain | Installed versions of git, python, uv, node, rustc, go, docker, winget, pwsh |
| node-managers | toolchain | Detects nvm-windows, fnm, and volta and warns on PATH conflicts |
| git | toolchain | Global identity, core.longpaths, core.autocrlf |
| git-cred | toolchain | Global credential.helper status, warning if unset or plain-text store |
| 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 |
These checks allow developers to isolate specific layers of their setup without running unrelated scans. For example, toolchain checks verify whether multiple Node managers conflict on PATH or whether Git is storing credentials in plain text, while Windows checks confirm whether WSL distros and non-admin symlinks are properly enabled.
05Single-file check plugins and MIT licensing
Win-dev-doctor uses a modular plugin architecture built around a one-file-per-check convention. Contributors can add new diagnostics by dropping a single file into the src/win_dev_doctor/checks/ directory that subclasses BaseCheck, at which point the registry discovers the new check automatically without manual registration.
The project is released under the MIT License and highlights potential future checks such as MSVC Build Tools, Docker and WSL2 memory limits, OpenSSH Agent, Scoop, and VS Code. Developers looking to contribute can browse open good first issue tickets, check the Contribute page for ready-to-pick tasks, and follow the repository's CONTRIBUTING.md guidelines.
Frequently asked questions
How do you install or run win-dev-doctor without a permanent setup?
You can run it instantly without installing using uvx --from win-dev-doctor wdd check. For a persistent installation, the project recommends uv tool install win-dev-doctor or pip install win-dev-doctor.
Which package manager caches can wdd clean reclaim space from?
The wdd clean command supports nine caches: pip, uv, npm, pnpm, yarn, cargo, ruff, gradle, and nuget. You can preview savings with --dry-run or target specific caches with -t.
How does win-dev-doctor protect existing PATH, Git, and MCP configurations?
Running wdd path --fix and wdd fix automatically creates a JSON backup so changes can be undone with wdd fix --rollback. When configuring AI clients via wdd setup, it creates a .bak backup before editing.
Which AI coding clients work with the wdd MCP server?
The zero-dependency stdio MCP server supports Claude Desktop, Claude Code, Cursor, VS Code, and Antigravity. You can auto-configure them with wdd setup or inspect detected paths using wdd config.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement