win-dev-doctor
Cleans the Gradle cache to reclaim disk space, with a dry-run preview of reclaimable gigabytes before deletion (via wdd clean).
Scans and cleans the npm cache to reclaim disk space, with a dry-run preview and optional targeted cleanup (via wdd clean).
Scans and cleans the NuGet package cache to reclaim disk space, with a dry-run preview and optional targeted cleanup (via wdd clean).
Scans and cleans the pnpm store/cache to reclaim disk space, with a dry-run preview and optional targeted cleanup (via wdd clean).
Scans and cleans the Ruff cache to reclaim disk space, alongside the other developer caches handled by wdd clean.
Scans and cleans the Yarn cache to reclaim disk space, with a dry-run preview and optional targeted cleanup (via wdd clean).
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.
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.exeentries inPATH.MAX_PATH(260-char) crashes ingit,cargo,pip, ornode_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, andgradlecaches.
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.
Related MCP server: Env Validator
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-doctorUsage
Run all health checks
wdd check
wdd check --verbose
wdd check --only path,env,long-paths,git
wdd check --jsonGenerate a shareable Markdown report (auto-redacts username)
wdd report -o doctor-report.mdInspect & 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 promptAudit & 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 configReclaim 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 immediatelyMCP 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. You can also browse its tools and score on Glama.
Add 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
ID | Category | What it checks |
| environment | Missing folders, duplicate entries, shadowed dev binaries in |
| environment |
|
| windows |
|
| windows | Developer Mode & non-admin symlink creation |
| toolchain | Installed versions of |
| toolchain | Detects |
| toolchain | Global identity, |
| toolchain | Checks global |
| windows | WSL availability and installed Linux distros |
| runtime | Active processes occupying common local dev ports |
| disk | Reclaimable disk space across package manager caches |
| 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
Available Tools
6 toolsclean_cachesClean Developer Package CachesC
Safely clean specific developer caches (defaults to dry_run=true for safety).
Inputs: dry_run, targets.
inspect_pathAudit Windows PATHA
Find missing directories, duplicate entries, and shadowed dev binaries in PATH.
Inputs: no named parameters.
kill_portKill Process on TCP PortC
Terminate the process listening on a given local TCP port.
Inputs: port (required), force.
list_portsList Listening TCP PortsB
Inspect active listening TCP ports and owning processes (PID, name, exe).
Inputs: port, all_ports.
run_health_checkRun Windows Developer Health ChecksA
Run modular Windows developer environment diagnostics (PATH, env vars, LongPathsEnabled, symlinks, toolchain, git, WSL, ports, caches, Defender).
Inputs: only.
scan_cachesScan Developer Package CachesA
Measure reclaimable space in pip, uv, npm, pnpm, yarn, cargo, ruff, gradle, nuget.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource or action (full diagnostics, PATH analysis, port listing/termination, cache scanning/cleaning), and the scan/clean and list/kill pairs read as clear complements. The only mild overlap is that run_health_check aggregates PATH, ports, and cache checks that also have dedicated tools, so an agent may occasionally wonder whether to run the umbrella check or the granular one.
All six tools follow a strict snake_case verb_noun pattern (run_health_check, inspect_path, list_ports, kill_port, scan_caches, clean_caches). Verbs are also sensibly paired (list/kill, scan/clean), reinforcing predictability.
Six tools is well-scoped for a developer-environment doctor: one aggregate health check plus focused diagnostic and remediation pairs. Each tool earns its place with no obvious redundancy or filler.
The surface covers diagnostics and remediation for ports and caches, but PATH issues are only inspectable (no fix/reorder tool) and env vars / Defender settings are only touched via the aggregate health check. These are minor gaps an agent can work around by reporting findings rather than auto-fixing.
Maintenance
Related MCP Connectors
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
- AlicenseAqualityBmaintenanceZero-config MCP server that gives AI coding assistants a real-time diagnostic snapshot of your local dev environment. Detects framework, running services, recent errors, git state, and provides a health diagnosis in one call.380 npm2MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP (Model Context Protocol) server that inspects your local development environment and reports missing dependencies, version mismatches, and misconfigured environment variables to any MCP-compatible AI assistant. Works with Claude Desktop, Cursor, Gemini CLI, and any other client that supports stdio-transport MCP servers.-
- AlicenseNot gradedqualityDmaintenanceA plug-and-play MCP toolkit providing AI agents with web search (Chinese sources prioritized), file operations, and shell command execution capabilities.2MIT
- AlicenseNot gradedqualityDmaintenanceA Python-based MCP server for local Windows diagnostics, task management, cleanup, hardware inspection, security checks, and administrative workflows.80 PyPI6MIT