Skip to main content

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-winos MCP Server (src/dismocle_mcp/): 11 fast Windows storage, cache, and app management tools exposed over stdio (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 unless allow_caution=True is 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=True to preview targets and sizes before any changes occur.
  • Recycle Bin first: delete_paths defaults to move_to_trash=True via send2trash.
  • 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.), plus Program Files system directories and ProgramData\Package Cache.
    • User profile roots (C:\Users, other users' profiles, Desktop, Documents, Downloads, Pictures, Videos, Music, OneDrive, AppData, browser User Data / Firefox Profiles), user registry hives (NTUSER.DAT, UsrClass.dat*), and credential/key directories (.ssh, .gnupg, .aws, .kube, .azure, .docker, .gemini, .config\gcloud, Windows Credentials/Protect/Vault).
  • 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_caches verifies every resolved cache path against is_protected_path and skips symlinks/junctions so misconfigured environment variables (e.g., %TEMP%) cannot touch user data.
  • Safe uninstaller execution: Uses Win32 CommandLineToArgvW with shell=False and validates Microsoft Store package IDs via environment variables to prevent PowerShell command injection.

Installation

Option 1: Antigravity Plugin

  1. Install uv so uvx is available on PATH.
  2. 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)

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)

Source distribution for dismocle-mcp-winos 0.1.2
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)

Table of built distributions (wheels) for dismocle-mcp-winos 0.1.2
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

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.

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