roshi-disk-space-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. roshi_disk_space_mcp-0.1.0/LICENSE +21 -0
  2. roshi_disk_space_mcp-0.1.0/PKG-INFO +89 -0
  3. roshi_disk_space_mcp-0.1.0/README.md +70 -0
  4. roshi_disk_space_mcp-0.1.0/disk_space_mcp/__init__.py +10 -0
  5. roshi_disk_space_mcp-0.1.0/disk_space_mcp/cleanup.py +510 -0
  6. roshi_disk_space_mcp-0.1.0/disk_space_mcp/cli.py +163 -0
  7. roshi_disk_space_mcp-0.1.0/disk_space_mcp/dashboard.py +514 -0
  8. roshi_disk_space_mcp-0.1.0/disk_space_mcp/dashboard_ui.html +3415 -0
  9. roshi_disk_space_mcp-0.1.0/disk_space_mcp/desktop_app.py +659 -0
  10. roshi_disk_space_mcp-0.1.0/disk_space_mcp/hosting.py +275 -0
  11. roshi_disk_space_mcp-0.1.0/disk_space_mcp/process_identity.py +520 -0
  12. roshi_disk_space_mcp-0.1.0/disk_space_mcp/resources.py +194 -0
  13. roshi_disk_space_mcp-0.1.0/disk_space_mcp/roshi_ecosystem.py +318 -0
  14. roshi_disk_space_mcp-0.1.0/disk_space_mcp/scanner.py +1557 -0
  15. roshi_disk_space_mcp-0.1.0/disk_space_mcp/server.py +339 -0
  16. roshi_disk_space_mcp-0.1.0/disk_space_mcp/store.py +1494 -0
  17. roshi_disk_space_mcp-0.1.0/pyproject.toml +48 -0
  18. roshi_disk_space_mcp-0.1.0/roshi_disk_space_mcp.egg-info/PKG-INFO +89 -0
  19. roshi_disk_space_mcp-0.1.0/roshi_disk_space_mcp.egg-info/SOURCES.txt +23 -0
  20. roshi_disk_space_mcp-0.1.0/roshi_disk_space_mcp.egg-info/dependency_links.txt +1 -0
  21. roshi_disk_space_mcp-0.1.0/roshi_disk_space_mcp.egg-info/entry_points.txt +3 -0
  22. roshi_disk_space_mcp-0.1.0/roshi_disk_space_mcp.egg-info/requires.txt +4 -0
  23. roshi_disk_space_mcp-0.1.0/roshi_disk_space_mcp.egg-info/top_level.txt +1 -0
  24. roshi_disk_space_mcp-0.1.0/setup.cfg +4 -0
  25. roshi_disk_space_mcp-0.1.0/tests/test_disk_space_mcp.py +325 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RIAEvangelist (Roshi)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: roshi-disk-space-mcp
3
+ Version: 0.1.0
4
+ Summary: Roshi's Disk Space MCP — 100% offline, ultra-lite Gravity-Well disk utilization analyzer, Treemap & Sunburst explorer, Bloat Hunter, duplicate detector, and safe Recycle Bin cleanup dashboard for Hermes, Antigravity, Codex, Claude Code, and open-source AI agents.
5
+ Author: RIAEvangelist (Roshi)
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://riaevangelist.github.io/roshi-disk-space-mcp/
8
+ Project-URL: Documentation, https://riaevangelist.github.io/roshi-disk-space-mcp/
9
+ Project-URL: Repository, https://github.com/RIAEvangelist/roshi-disk-space-mcp
10
+ Project-URL: Issues, https://github.com/RIAEvangelist/roshi-disk-space-mcp/issues
11
+ Keywords: disk-space,storage-analyzer,gravity-well,treemap,sunburst,disk-cleanup,offline,mcp,mcp-server,hermes,antigravity,codex,claude
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: mcp>=1.6.0
16
+ Provides-Extra: dev
17
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
18
+ Dynamic: license-file
19
+
20
+ <!-- mcp-name: io.github.RIAEvangelist/roshi-disk-space-mcp -->
21
+
22
+ <p align="center">
23
+ <a href="https://riaevangelist.github.io/roshi-disk-space-mcp/">
24
+ <img src="assets/roshi-disk-space-mcp-header.png" alt="Roshi's Disk Space MCP — Offline Gravity-Well Disk Utilization Sanctuary" width="100%" />
25
+ </a>
26
+ </p>
27
+
28
+ <h1 align="center">Roshi's Disk Space MCP</h1>
29
+ <p align="center"><strong>100% Offline, Ultra-Lite Gravity-Well Disk Space Analyzer, Visual Map Explorer &amp; Safe Cleanup Sanctuary</strong></p>
30
+
31
+ <p align="center">
32
+ <a href="https://riaevangelist.github.io/roshi-disk-space-mcp/">Documentation Site</a> &middot;
33
+ <a href="https://github.com/RIAEvangelist/roshi-disk-space-mcp">GitHub Repository</a>
34
+ </p>
35
+
36
+ <p align="center">
37
+ <img src="https://img.shields.io/badge/version-0.1.0-d4a853?style=flat-square" alt="Version 0.1.0" />
38
+ <img src="https://img.shields.io/badge/python-%3E%3D3.10-38bdf8?style=flat-square" alt="Python 3.10+" />
39
+ <img src="https://img.shields.io/badge/MCP-stdio%20%2B%20REST-34d399?style=flat-square" alt="MCP" />
40
+ <img src="https://img.shields.io/badge/hosts-Hermes%20%7C%20Antigravity%20%7C%20Codex%20%7C%20Claude%20%7C%20VS%20Code-d4a853?style=flat-square" alt="Multi-AI Hosts" />
41
+ <img src="https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-38bdf8?style=flat-square" alt="Platforms" />
42
+ <img src="https://img.shields.io/badge/offline-100%25%20zero--CDN-34d399?style=flat-square" alt="100% Offline" />
43
+ <img src="https://img.shields.io/badge/license-MIT-9fb2c9?style=flat-square" alt="MIT License" />
44
+ </p>
45
+
46
+ <p align="center">
47
+ <strong>Directories &amp; Registries:</strong>
48
+ <a href="https://pypi.org/project/roshi-disk-space-mcp/">PyPI</a> &middot;
49
+ <a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.RIAEvangelist/roshi-disk-space-mcp">Official MCP Registry</a> &middot;
50
+ <a href="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-disk-space-mcp">Glama Directory</a> &middot;
51
+ <a href="https://github.com/RIAEvangelist/roshi-disk-space-mcp/releases">GitHub Releases</a>
52
+ </p>
53
+
54
+ > **Local-First Notice:** Roshi's Disk Space MCP is designed to be **installed and run 100% locally and offline on your own machine, device, or private server** — never a cloud SaaS. All scanning, SQLite indexing, Canvas/SVG chart rendering, and safe Recycle Bin cleanup run locally with zero external JavaScript CDNs, zero telemetry, and only one Python dependency (`mcp`). Optional Intranet (LAN) hosting is opt-in only and protected by Bearer token authentication.
55
+
56
+ ---
57
+
58
+ ## Highlights
59
+
60
+ - **Interactive Gravity Well Map (Pure HTML5 Canvas 2D):** Visualizes your heaviest folders and files as celestial mass bodies deforming a subtle spacetime contour grid. Click any golden-ringed folder orb to warp deeper into its gravity well; click any file orb to inspect, reveal in Explorer, or stage for cleanup. Physics settles smoothly and drops to **0% CPU at rest**.
61
+ - **Squarified Treemap & Radial Sunburst Views:** Switch instantly between **Gravity Well**, **Squarified Treemap**, and multi-depth **Radial Sunburst** — all rendered 100% offline with zero third-party charting libraries.
62
+ - **Local Utilization Charts:** Live mounted drive gauges, file-category donut chart, and file-age histogram ("Dusty Giants" untouched for 6+ months).
63
+ - **Smart Bloat Hunter & Lite Duplicate Finder:** Spots reclaimable caches (`node_modules`, `__pycache__`, `.venv`, build outputs, logs, dumps, installers, VM disk images) and finds exact duplicates using an I/O-bounded 2-stage check (size → 16 KB head/tail → SHA-256).
64
+ - **Safety-First Cleanup Engine:** Defaults to reversible **OS Recycle Bin / Trash** (pure Win32 `SHFileOperationW` / macOS Trash / Linux FreeDesktop Trash), blocks OS roots and top-level Roshi data vaults, previews every path via `dry_run=True`, logs every cleanup to `~/.roshi-disk-space-mcp/cleanup_audit.jsonl`, and subtracts removed items from cached snapshots live.
65
+ - **Resource-Safe Scanning (`gentle` / `balanced` / `max`):** Lowers OS process priority, skips NTFS junctions/symlinks to prevent loops, bounds worker threads, gates on free RAM headroom, and supports instant cancellation.
66
+ - **First-Class Multi-AI & Open-Source Support:** Works natively with **Hermes**, **Antigravity**, **Codex**, **Claude Code**, **OpenClaw**, **Cursor**, **VS Code**, and standalone CLI/REST scripts.
67
+
68
+ ## Quick Start
69
+
70
+ ```bash
71
+ # Standalone CLI (zero web dependencies)
72
+ python run_cli.py volumes
73
+ python run_cli.py scan ~ --profile balanced
74
+ python run_cli.py bloat
75
+ python run_cli.py open-dashboard
76
+ ```
77
+
78
+ ### MCP Config (Hermes, Antigravity, Codex, Claude Code, VS Code)
79
+
80
+ ```json
81
+ {
82
+ "mcpServers": {
83
+ "roshi-disk-space-mcp": {
84
+ "command": "python",
85
+ "args": ["bootstrap_mcp.py"]
86
+ }
87
+ }
88
+ }
89
+ ```
@@ -0,0 +1,70 @@
1
+ <!-- mcp-name: io.github.RIAEvangelist/roshi-disk-space-mcp -->
2
+
3
+ <p align="center">
4
+ <a href="https://riaevangelist.github.io/roshi-disk-space-mcp/">
5
+ <img src="assets/roshi-disk-space-mcp-header.png" alt="Roshi's Disk Space MCP — Offline Gravity-Well Disk Utilization Sanctuary" width="100%" />
6
+ </a>
7
+ </p>
8
+
9
+ <h1 align="center">Roshi's Disk Space MCP</h1>
10
+ <p align="center"><strong>100% Offline, Ultra-Lite Gravity-Well Disk Space Analyzer, Visual Map Explorer &amp; Safe Cleanup Sanctuary</strong></p>
11
+
12
+ <p align="center">
13
+ <a href="https://riaevangelist.github.io/roshi-disk-space-mcp/">Documentation Site</a> &middot;
14
+ <a href="https://github.com/RIAEvangelist/roshi-disk-space-mcp">GitHub Repository</a>
15
+ </p>
16
+
17
+ <p align="center">
18
+ <img src="https://img.shields.io/badge/version-0.1.0-d4a853?style=flat-square" alt="Version 0.1.0" />
19
+ <img src="https://img.shields.io/badge/python-%3E%3D3.10-38bdf8?style=flat-square" alt="Python 3.10+" />
20
+ <img src="https://img.shields.io/badge/MCP-stdio%20%2B%20REST-34d399?style=flat-square" alt="MCP" />
21
+ <img src="https://img.shields.io/badge/hosts-Hermes%20%7C%20Antigravity%20%7C%20Codex%20%7C%20Claude%20%7C%20VS%20Code-d4a853?style=flat-square" alt="Multi-AI Hosts" />
22
+ <img src="https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-38bdf8?style=flat-square" alt="Platforms" />
23
+ <img src="https://img.shields.io/badge/offline-100%25%20zero--CDN-34d399?style=flat-square" alt="100% Offline" />
24
+ <img src="https://img.shields.io/badge/license-MIT-9fb2c9?style=flat-square" alt="MIT License" />
25
+ </p>
26
+
27
+ <p align="center">
28
+ <strong>Directories &amp; Registries:</strong>
29
+ <a href="https://pypi.org/project/roshi-disk-space-mcp/">PyPI</a> &middot;
30
+ <a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.RIAEvangelist/roshi-disk-space-mcp">Official MCP Registry</a> &middot;
31
+ <a href="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-disk-space-mcp">Glama Directory</a> &middot;
32
+ <a href="https://github.com/RIAEvangelist/roshi-disk-space-mcp/releases">GitHub Releases</a>
33
+ </p>
34
+
35
+ > **Local-First Notice:** Roshi's Disk Space MCP is designed to be **installed and run 100% locally and offline on your own machine, device, or private server** — never a cloud SaaS. All scanning, SQLite indexing, Canvas/SVG chart rendering, and safe Recycle Bin cleanup run locally with zero external JavaScript CDNs, zero telemetry, and only one Python dependency (`mcp`). Optional Intranet (LAN) hosting is opt-in only and protected by Bearer token authentication.
36
+
37
+ ---
38
+
39
+ ## Highlights
40
+
41
+ - **Interactive Gravity Well Map (Pure HTML5 Canvas 2D):** Visualizes your heaviest folders and files as celestial mass bodies deforming a subtle spacetime contour grid. Click any golden-ringed folder orb to warp deeper into its gravity well; click any file orb to inspect, reveal in Explorer, or stage for cleanup. Physics settles smoothly and drops to **0% CPU at rest**.
42
+ - **Squarified Treemap & Radial Sunburst Views:** Switch instantly between **Gravity Well**, **Squarified Treemap**, and multi-depth **Radial Sunburst** — all rendered 100% offline with zero third-party charting libraries.
43
+ - **Local Utilization Charts:** Live mounted drive gauges, file-category donut chart, and file-age histogram ("Dusty Giants" untouched for 6+ months).
44
+ - **Smart Bloat Hunter & Lite Duplicate Finder:** Spots reclaimable caches (`node_modules`, `__pycache__`, `.venv`, build outputs, logs, dumps, installers, VM disk images) and finds exact duplicates using an I/O-bounded 2-stage check (size → 16 KB head/tail → SHA-256).
45
+ - **Safety-First Cleanup Engine:** Defaults to reversible **OS Recycle Bin / Trash** (pure Win32 `SHFileOperationW` / macOS Trash / Linux FreeDesktop Trash), blocks OS roots and top-level Roshi data vaults, previews every path via `dry_run=True`, logs every cleanup to `~/.roshi-disk-space-mcp/cleanup_audit.jsonl`, and subtracts removed items from cached snapshots live.
46
+ - **Resource-Safe Scanning (`gentle` / `balanced` / `max`):** Lowers OS process priority, skips NTFS junctions/symlinks to prevent loops, bounds worker threads, gates on free RAM headroom, and supports instant cancellation.
47
+ - **First-Class Multi-AI & Open-Source Support:** Works natively with **Hermes**, **Antigravity**, **Codex**, **Claude Code**, **OpenClaw**, **Cursor**, **VS Code**, and standalone CLI/REST scripts.
48
+
49
+ ## Quick Start
50
+
51
+ ```bash
52
+ # Standalone CLI (zero web dependencies)
53
+ python run_cli.py volumes
54
+ python run_cli.py scan ~ --profile balanced
55
+ python run_cli.py bloat
56
+ python run_cli.py open-dashboard
57
+ ```
58
+
59
+ ### MCP Config (Hermes, Antigravity, Codex, Claude Code, VS Code)
60
+
61
+ ```json
62
+ {
63
+ "mcpServers": {
64
+ "roshi-disk-space-mcp": {
65
+ "command": "python",
66
+ "args": ["bootstrap_mcp.py"]
67
+ }
68
+ }
69
+ }
70
+ ```
@@ -0,0 +1,10 @@
1
+ """Roshi's Disk Space MCP — Offline Gravity-Well Disk Utilization Analyzer, Explorer & Safe Cleanup Sanctuary."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __version__ = "0.1.0"
6
+ SERVICE_ID = "roshi-disk-space-mcp"
7
+ SERVICE_NAME = "Roshi's Disk Space MCP"
8
+ CANONICAL_HOSTNAME = "roshi.disk.local"
9
+ CANONICAL_URL = f"https://{CANONICAL_HOSTNAME}"
10
+ DEFAULT_DASHBOARD_PORT = 8797