Cublet Cleaner · Model Context Protocol
Local Mac disk cleanup over MCP for Claude Code & Codex.
Give your coding agent one scoped, verifiable macOS cleanup tool instead of letting it burn context on exploratory shell loops.
Updated · Cublet v0.6.2 · Local stdio MCP · MIT Open Source
cublet-cleaner) inside Cublet.app. Over local stdio, coding agents such as Claude Code, Codex, and Cursor call reclaim_space within a directory scope you authorize—checking active builds before deleting eligible Rust target/ or Go caches and returning a compact receipt instead of raw du/find dumps.
1. Install Cublet on macOS
Install Cublet (macOS 13+, Apple Silicon & Intel) via Homebrew Cask or the signed DMG installers on the download page:
2. Add cublet-cleaner to Claude Code, Codex, or Cursor
Open Cublet desktop and go to AI connections → Connection instructions to confirm the exact binary path on your Mac. For standard installations in /Applications, add this local stdio MCP server configuration:
{
"mcpServers": {
"cublet-cleaner": {
"command": "/Applications/Cublet.app/Contents/Resources/bin/cublet-cleaner",
"args": [
"--mcp",
"--profile",
"cleanup",
"--allow-cleanup"
]
}
}
}
Want scan inspection, growth diffs, cleanup previews, and reviewed application uninstall tools as well? Omit --profile cleanup to expose the advanced toolset:
{
"mcpServers": {
"cublet-cleaner": {
"command": "/Applications/Cublet.app/Contents/Resources/bin/cublet-cleaner",
"args": [
"--mcp",
"--allow-cleanup"
]
}
}
}
3. Tool Profiles & Contracts
Keeping the default agent profile compact prevents tool-schema bloat in every turn while preserving full safety guarantees:
| Profile | Exposed Tools | Best For |
|---|---|---|
Compact cleanup--profile cleanup --allow-cleanup |
reclaim_space, cleanup_status |
Goal-oriented Rust/Go build-cache recovery toward an authorized available-space target. |
Full / Advanced--allow-cleanup |
scan_growth, cleanup_preview, cleanup_execute, cleanup_cancel, app search & reviewed uninstall |
Interactive disk diagnostics, baseline growth diffs, and explicitly approved application cleanup. |
4. Scope Isolation & Deletion Safety
- Connection ≠ authorization: Registering
cublet-cleanerdoes not permit autonomous deletion. Every recovery call requires an explicitly user-approved scope and target. - Active-build detection: Before removing a Rust
target/or Go cache, Cublet checks whether candidate artifacts are rebuildable and whether a live build is actively using them. - Clear permanence rules: Build-cache recovery permanently deletes eligible outputs so APFS space returns immediately; if desktop Settings selects Move to Trash, build-cache recovery reports a conflict instead of silently overriding your setting. Application uninstall defaults to permanent deletion and honors Move to Trash when enabled in Settings.
- Local execution, transparent agent boundary: Scanning and deletion run locally on your Mac. Structured paths and receipts returned to your MCP client enter that agent’s context and follow your AI provider’s data policy (Privacy details).
5. Measured Impact vs Shell Cleanup
In six repeated-use paired runs on controlled APFS volumes, giving Codex Cublet’s local MCP tool instead of shell commands cut recovery time by ~73% and total tokens by 58–66%. Read the full benchmark methodology and raw tables.
Agent with and without MCP
Same cleanup task. Shell baseline = 100. Lower is better.
Recovery time
~73% lessTotal tokens
58–66% fewerWorkload tokens
31–50% fewerRepeated-use macOS / Rust cleanup tests. Ranges span the paired medians of three cases; results vary by task.
Frequently asked questions
Does connecting Cublet Cleaner (MCP) allow an agent to delete files automatically?
No. Registering the local stdio MCP server only exposes the tool schema to your client. Build-cache recovery runs strictly within the directory scope and available-space target you explicitly authorize.
Which coding agents work with Cublet Cleaner MCP?
Any MCP-compatible client that supports local stdio servers works, including Claude Code, OpenAI Codex, and Cursor. Copy the exact installed binary path from Cublet desktop under AI connections → Connection instructions.
What happens if Desktop Settings is set to Move to Trash?
Build-cache recovery permanently deletes eligible rebuildable Rust target/ and Go build caches after authorization so disk blocks return immediately. If Settings selects Move to Trash, build-cache recovery reports a conflict instead of silently changing the mode.
Does Cublet upload my repository or disk tree to a cloud server?
No. Scanning and cleanup execute locally on your Mac. However, tool outputs returned to your MCP client—such as local paths, storage summaries, and cleanup receipts—enter your agent’s context and may be processed by the AI provider you configured.
Ready to wire up your coding agent?
Install Cublet via Homebrew or download the verified macOS package, then copy your machine’s exact MCP setup from AI connections.