Dismocle MCP (dismocle-mcp-winos)
Lightweight, high-speed Windows disk analyzer, cache cleaner, and installed app manager for AI agents via the Model Context Protocol (MCP) and as an Antigravity plugin.
Repository: https://github.com/Automate-with-Sanjay/Dismocle_mcp_winos
Requirements: Windows · Python >=3.12 · uv (recommended)
What It Includes
This repository packages three integrated pieces:
dismocle-mcp-winosMCP Server (src/dismocle_mcp/): 11 fast Windows storage, cache, and app management tools exposed overstdio(mcp>=2.3.0).- Antigravity Plugin (
plugin.json,mcp_config.json): Pre-configured plugin bundle with suggested prompts. - Cleanup Workflow & Safety Guardrails (
skills/windows-cleanup/SKILL.md,rules/AGENTS.md): Guided triage-to-confirmation workflow and strict agent safety rules.
Features & MCP Tools
Read-Only Inspection Tools (7)
| Tool | Purpose |
|---|---|
get_drives_overview |
Instant total, used, free space, and filesystem info for all mounted drives. |
analyze_directory |
Parallel os.scandir size breakdown and largest files without following NTFS junctions or symlinks. |
find_large_files |
Find large or stale files filtered by minimum MB, extensions (.iso, .zip, .mp4, etc.), and age in days. |
scan_caches |
Scan Windows, browser, Recycle Bin, and developer package caches grouped by safe, moderate, and caution tiers. |
find_dev_artifacts |
Locate regenerable project build/dependency folders (node_modules, .venv, venv, target, dist, build, __pycache__, .next, .turbo, etc.). |
list_installed_apps |
Fast (<50 ms) Registry app inventory with optional Microsoft Store / AppX apps and on-disk InstallLocation size measurement. |
get_system_storage_insights |
Inspect hiberfil.sys, pagefile.sys, swapfile.sys, MEMORY.DMP, Windows.old, Package Cache, and WSL2/Docker .vhdx virtual disks with cleanup advice. |
Mutating Tools (4 — all default to dry_run=True)
| Tool | Purpose & Default Safety |
|---|---|
clean_caches |
Preview or clean scanned cache IDs (dry_run=True, allow_caution=False). |
delete_paths |
Preview, recycle, or remove specific user-approved files/folders (dry_run=True, move_to_trash=True). |
empty_recycle_bin |
Preview or empty the Windows Recycle Bin (dry_run=True, optional validated drive letter). |
uninstall_app |
Preview or launch the native Windows/Store uninstaller (dry_run=True, excludes system components/updates). |
Supported Cache Targets (scan_caches / clean_caches)
- Safe (
safety="safe"): User & Windows Temp, Windows Update download cache, Delivery Optimization cache, Crash Dumps & WER logs, DirectX/NVIDIA/AMD GPU shader caches, Explorer thumbnails (thumbcache_*.db), Chrome/Edge/Brave/Firefox disk caches (preserves bookmarks, history, cookies, and logins),uv,pip,npm, and VS Code caches. - Moderate (
safety="moderate"): Windows Recycle Bin, Windows Prefetch,pnpm/Yarn, NuGet, Cargo, and Gradle caches. - Caution (
safety="caution"): HuggingFace, PyTorch, and Ollama downloaded model caches (blocked unlessallow_caution=Trueis explicitly passed).
Safety & Protection Guardrails
Dismocle is designed so an AI agent cannot accidentally wipe Windows or personal user files:
- Dry-run by default: Every mutating tool defaults to
dry_run=Trueto preview targets and sizes before any changes occur. - Recycle Bin first:
delete_pathsdefaults tomove_to_trash=Trueviasend2trash. - Hard-blocked protected paths:
- Any drive root (
C:\,D:\, etc.) and critical root files/folders (hiberfil.sys,pagefile.sys,swapfile.sys,bootmgr,$Recycle.Bin,System Volume Information,Recovery,Boot,EFI). C:\Windows(SystemRoot) and all its descendants (System32,SysWOW64,WinSxS, etc.), plusProgram Filessystem directories andProgramData\Package Cache.- User profile roots (
C:\Users, other users' profiles,Desktop,Documents,Downloads,Pictures,Videos,Music,OneDrive,AppData, browserUser Data/ FirefoxProfiles), user registry hives (NTUSER.DAT,UsrClass.dat*), and credential/key directories (.ssh,.gnupg,.aws,.kube,.azure,.docker,.gemini,.config\gcloud, WindowsCredentials/Protect/Vault).
- Any drive root (
- Bypass & traversal defense:
- Blocks UNC paths (
\\server\share), Windows device paths (\\.\), wildcards, null bytes, and reserved device names. - Validates both lexical (
abspath) and resolved (realpath) paths to block 8.3 short-name aliases (e.g.,PROGRA~1),\\?\prefix tricks, and symlink/NTFS junction traversal. clean_cachesverifies every resolved cache path againstis_protected_pathand skips symlinks/junctions so misconfigured environment variables (e.g.,%TEMP%) cannot touch user data.
- Blocks UNC paths (
- Safe uninstaller execution: Uses Win32
CommandLineToArgvWwithshell=Falseand validates Microsoft Store package IDs via environment variables to prevent PowerShell command injection.
Installation
Option 1: Antigravity Plugin
- Install
uvsouvxis available onPATH. - Clone this repository and install the plugin with the Antigravity CLI:
git clone https://github.com/Automate-with-Sanjay/Dismocle_mcp_winos.git agy plugin install .\Dismocle_mcp_winos
Option 2: PyPI (dismocle-mcp-winos)
Recommended for Claude Desktop / Cursor (Fast, Reliable Startup)
Install once as a persistent uv tool so startup is instant and avoids cold-cache pywin32 extraction locks on Windows:
uv tool install dismocle-mcp-winos
dismocle-mcp-winos --version
Then add to your claude_desktop_config.json / mcp_config.json (ensure %USERPROFILE%\.local\bin is on PATH, which uv sets up):
{
"mcpServers": {
"dismocle-windows": {
"command": "dismocle-mcp-winos"
}
}
}
Quick Run via uvx
If you prefer running via uvx, pre-warm the cache once in PowerShell before launching Claude Desktop:
uvx dismocle-mcp-winos --version
{
"mcpServers": {
"dismocle-windows": {
"command": "uvx",
"args": ["dismocle-mcp-winos"]
}
}
}
Option 3: Directly from GitHub (No PyPI required)
{
"mcpServers": {
"dismocle-windows": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Automate-with-Sanjay/Dismocle_mcp_winos",
"dismocle-mcp-winos"
]
}
}
}
Option 4: Local / Development
git clone https://github.com/Automate-with-Sanjay/Dismocle_mcp_winos.git
cd Dismocle_mcp_winos
uv sync
$env:PYTHONPATH = "src"
.\.venv\Scripts\python.exe -m unittest discover -s tests -v
.\.venv\Scripts\dismocle-mcp-winos.exe
Project Structure
Dismocle_mcp_winos/
├── src/dismocle_mcp/
│ ├── server.py # FastMCP server & tool definitions
│ ├── scanner.py # Drive overview, parallel directory & large-file scanner
│ ├── caches.py # Windows/browser/dev cache specs & dev artifact finder
│ ├── cleaner.py # Dry-run/safe cache cleaning, delete_paths & Recycle Bin
│ ├── apps.py # Registry/Store app inventory & safe uninstaller
│ ├── system_info.py # hiberfil/pagefile/Windows.old/WSL2 & Docker insights
│ └── utils.py # Path normalization, protected-path & junction guards
├── skills/windows-cleanup/SKILL.md
├── rules/AGENTS.md
├── tests/test_dismocle.py
├── plugin.json
├── mcp_config.json
└── pyproject.toml
License
MIT — see LICENSE.
Metadata
Release files for dismocle-mcp-winos 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dismocle_mcp_winos-0.1.2.tar.gz | 27.0 kB | With provenance | Details for dismocle_mcp_winos-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dismocle_mcp_winos-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for dismocle_mcp_winos-0.1.2-py3-none-any.whl |
Total release size: 58.6 kB
Release files / dismocle_mcp_winos-0.1.2.tar.gz
| Download URL | dismocle_mcp_winos-0.1.2.tar.gz |
|---|---|
| Size | 27.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11f898e998b7176cdb92a7a76eefd85741c0b7f974a2a4e79428ce4a477cfc9f
|
|
BLAKE2b-256 checksum How to use checksums |
a1714c61df7cce6427b33acdd994ad82621613e3bc4eabeb6479bd7293166d45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / dismocle_mcp_winos-0.1.2-py3-none-any.whl
| Download URL | dismocle_mcp_winos-0.1.2-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cfe8a8b032d9017ffb11d4e6f042c356de7bb744568f3222d63e321441abb68
|
|
BLAKE2b-256 checksum How to use checksums |
95720309caa6e70ddb0169d7e41af439e6a22c2dcc816ede4b1b77e49178183f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for dismocle-mcp-winos 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dismocle_mcp_winos-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA 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.