Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Cache Commander — a TUI and MCP server to explore, audit, and clean developer cache directories. Scan for CVEs, find outdated packages, reclaim disk space. Supports pip, npm, Cargo, HuggingFace, Homebrew, and more.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Fetched from the repository for this visit.
A terminal UI (TUI) for exploring, auditing, and cleaning developer cache directories on macOS and Linux. Scan cached packages for known CVEs, find outdated dependencies, and reclaim disk space — all from one tool.
Developer machines accumulate tens of gigabytes of invisible cache data — ML models, package archives, build artifacts, downloaded bottles. ccmd makes it all visible, scannable for vulnerabilities, and safely deletable.

SwiftURL coverage is sparse)ccmd gives you a single view across all of them with security scanning built in.
brew tap juliensimon/tap
brew install ccmd
cargo install ccmd # TUI only
cargo install ccmd --features mcp # TUI + MCP server for AI integration
cargo binstall ccmd
git clone https://github.com/juliensimon/cache-commander
cd cache-commander
cargo build --release
./target/release/ccmd
Download from GitHub Releases — available for macOS (x86_64, Apple Silicon) and Linux (x86_64, aarch64).
ccmd # browse all default cache locations
ccmd --vulncheck # scan for CVEs on startup
ccmd --versioncheck # check for outdated packages on startup
ccmd --root ~/.cache/huggingface # scan a specific directory
/ — case-insensitive filter across the treec to copy pip install pkg>=version to clipboardd to delete with confirmationm marks all visible (non-dimmed) items after filteringV) → filter (f) → mark all (m) → delete (d)macOS and Linux only. Windows is not supported. Path detection, cache directory resolution, and provider logic all assume Unix-style paths.
| Provider | Location | Semantic names |
|---|---|---|
| HuggingFace | ~/.cache/huggingface | Model/dataset names, revisions |
| pip | ~/.cache/pip, ~/Library/Caches/pip | Wheel packages |
| uv | ~/.cache/uv, ~/Library/Caches/uv | Package names via dist-info |
| Poetry | ~/.cache/pypoetry, ~/Library/Caches/pypoetry | Wheels and sdists from artifacts/ |
| npm | ~/.npm | npx packages + transitive node_modules deps |
| Homebrew | ~/Library/Caches/Homebrew | Bottles, casks |
| Cargo | ~/.cargo/registry | Crate names and versions |
| pre-commit | ~/.cache/pre-commit | Hook repo names |
| Whisper | ~/.cache/whisper | Model names (Large v3, Tiny, etc.) |
| GitHub CLI | ~/.cache/gh | Workflow run logs |
| PyTorch | ~/.cache/torch | Model checkpoints |
| Chroma | ~/.cache/chroma | Embedding models |
| Prisma | ~/.cache/prisma | Engine versions |
| Yarn | ~/.yarn-cache, .yarn/cache | Package names and versions |
| pnpm | ~/.pnpm-store, ~/Library/pnpm/store, ~/.local/share/pnpm/store (probed via pnpm store path) | Package names and versions |
| Bun | ~/.bun/install/cache | Package names and versions |
| Maven | ~/.m2/repository | group:artifact version from layout |
| Gradle | ~/.gradle/caches | group:artifact version from files-2.1 layout |
| SwiftPM | ~/Library/Caches/org.swift.swiftpm (macOS), ~/.cache/org.swift.swiftpm (Linux) | Package names from repositories/ and artifacts/ |
| Xcode | ~/Library/Developer/Xcode/DerivedData, ~/Library/Developer/Xcode/iOS DeviceSupport, ~/Library/Developer/CoreSimulator/Caches | Workspace path from Info.plist, iOS version strings |
| Go | ~/go/pkg/mod (module cache), $GOCACHE / ~/Library/Caches/go-build (build cache) | Module paths (bang-decoded) with versions from cache/download/<module>/@v/*.zip |
All providers support tree navigation, size display, and deletion. This matrix shows which optional capabilities each provider implements.
| Provider | Safety classification | Vuln scan (v/V) | Outdated check (o/O) | Upgrade copy (c) |
|---|---|---|---|---|
| HuggingFace | Safe | — | — | — |
| pip | Safe | OSV PyPI | PyPI | pip install |
| uv | Safe ⁴ | OSV PyPI | PyPI | uv pip install |
| Poetry | artifacts/ + cache/repositories/ = Safe; virtualenvs/ = Caution | OSV PyPI | PyPI | poetry add |
| npm | Safe | OSV npm | npm registry | npm install |
| Homebrew | Safe | — | — | — |
| Cargo | Safe | OSV crates.io | crates.io | cargo update -p |
| pre-commit | Safe | — | — | — |
| Whisper | Safe | — | — | — |
| GitHub CLI | Safe | — | — | — |
| PyTorch | Safe | — | — | — |
| Chroma | Safe | — | — | — |
| Prisma | Safe | — | — | — |
| Yarn | Safe; Berry .yarn/cache/ = Caution (zero-install) | OSV npm | npm registry | yarn add |
| pnpm | Safe; virtual store (node_modules/.pnpm/) = Caution | OSV npm ³ | npm registry ³ | pnpm add |
| Bun | Safe for install/cache/; .bun/bin/* = Unsafe (runtime); else Caution | OSV npm | npm registry | bun add |
| Maven | Safe | OSV Maven | Maven Central | <dependency>…</dependency> snippet |
| Gradle | Safe; build-cache-*/ + transforms-*/ = Caution | OSV Maven | Maven Central | implementation '…' line |
| SwiftPM | repositories/ = Caution (re-clone); artifacts/ + manifests/ = Safe; unknown subdirs = Caution | — ¹ | — ¹ | — ¹ |
| Xcode | DerivedData/ = Caution (5–30 min rebuild); iOS DeviceSupport/ + CoreSimulator/Caches/ = Safe | — ² | — ² | — ² |
| Go | pkg/mod = Safe (re-resolvable from proxy); go-build = Caution (cold rebuild cost) | OSV Go | proxy.golang.org /@v/list | go get |
Legend:
● in the detail panel).◐).○).Notes:
repositories/ layout requires parsing git refs, which is too brittle; OSV's SwiftURL ecosystem has sparse coverage; and Swift package upgrades are project-local (Package.swift / Package.resolved), not global cache operations. May be reconsidered when OSV coverage improves.index.db. ccmd reads package names and versions from its keys, read-only, and a vulnerable package there marks the index.db entry and the folders above it. Rows that are not a registry name@version (git and tarball URL dependencies) are not scanned and are counted, row by row, in the "could not be identified" note; a database that could not be read at all, or whose write-ahead log could not be, counts as one however many packages it holds, so that number is a lower bound. Packages found there are reported under a path below index.db that does not exist on disk, so the MCP scan_vulnerabilities / check_outdated reports show them but get_package_details, search_packages, preview_delete and delete_packages do not apply to them. The file is untrusted, so it is read with a row (250,000) and time limit and package_index must be a real table; past a limit the packages already read are scanned and the note says the rest was not. A store pnpm is writing to is read with its write-ahead log (or rollback journal) when SQLite allows it; when it does not (for example a read-only mount), the main file is read alone and the note says that recent packages may be missing. A store is recognised by its layout (v<N>/index.db beside pnpm's files/ content store, whose entries are hex-named shard directories), so one placed anywhere with pnpm store path or store-dir is found, as long as its root is one of ccmd's configured roots. Scanning of v10 stores and of virtual stores (node_modules/.pnpm/) is as before.clone on macOS/Linux, hardlink on Windows), where environments keep working after the cache is deleted. With the opt-in link-mode = symlink, which uv itself discourages, environments point into the cache and deleting it breaks their installed packages. ccmd does not detect the link mode and reports Safe either way.| Key | Action |
|---|---|
↑/k ↓/j | Move up / down |
→/l ←/h | Expand / Collapse (or go to parent) |
Enter | Toggle expand |
g / G | Jump to top / bottom |
/ | Search — type to filter, Enter to keep, Esc to clear |
| Key | Action |
|---|---|
v / V | Scan selected / all for CVEs |
o / O | Check selected / all for outdated versions |
f | Cycle status filter: none → vuln → outdated → both |
c | Copy upgrade command to clipboard |
| Key | Action |
|---|---|
Space | Mark / unmark item |
Shift+Space | Unmark all |
m | Mark all visible items (with confirmation) |
u | Unmark all |
d / D | Delete marked items |
| Key | Action |
|---|---|
s | Cycle sort (size → name → modified) |
r / R | Refresh selected / all |
? | Help overlay |
q / Ctrl+C | Quit |
Create ~/.config/ccmd/config.toml:
roots = ["~/.cache", "~/Library/Caches", "~/.npm", "~/.cargo/registry"]
sort_by = "size" # size | name | modified
sort_desc = true
confirm_delete = true
[vulncheck]
enabled = false # set true to scan on startup
[versioncheck]
enabled = false # set true to check on startup
[privacy]
private_packages = [] # names never sent to OSV or a registry, see below
CLI flags override config file values.
ccmd walks your cache directories and identifies providers by directory name and structure. Each provider has custom logic to decode semantic names — for example, HuggingFace stores models in directories like models--meta-llama--Llama-3.1-8B, which ccmd displays as [model] meta-llama/Llama-3.1-8B.
When you press V (or pass --vulncheck):
ccmd walks the cache tree to discover packages with identifiable name + versionA package that cannot be identified is not silently skipped: if an npm package directory has a missing, malformed, oversized or invalid package.json, the status line says how many manifests were not scanned, and the MCP scan reports list them with the reason.
Scanning and browsing your caches is local. Apart from the update check (on by default, last row), nothing about your packages is sent until you ask for it. These are the only network requests ccmd makes, and what each one contains:
| When | Request | What it contains |
|---|---|---|
V / --vulncheck / [vulncheck] enabled = true | POST api.osv.dev/v1/querybatch, then GET api.osv.dev/v1/vulns/<id> | For every package found in your caches: its name, version and ecosystem. The advisory fetches carry only the advisory id. |
O / --versioncheck / [versioncheck] enabled = true | One GET per package to its public registry: pypi.org, crates.io, registry.npmjs.org, repo1.maven.org, proxy.golang.org | The package name only (Maven group/artifact, Go module path), no version. |
| On startup (on by default) | GET api.github.com/repos/juliensimon/cache-commander/releases/latest | No package data. Disable with [updater] enabled = false or CCMD_NO_UPDATE_CHECK=1. |
The MCP tools scan_vulnerabilities and check_outdated send the same requests when an agent calls them.
Nothing is private by default. If your caches contain packages whose names you do not want to disclose to OSV or a public registry (an internal npm scope, a company Maven group, a private Go module), list them in the config file:
[privacy]
private_packages = [
"@acme", # npm scope: @acme/ui, @acme/api, ...
"github.com/acme", # Go module prefix, as with GOPRIVATE
"com.acme", # Maven group and its subgroups: com.acme:lib, com.acme.sub:lib
"acme-*", # `*` matches any run of characters
"internal-tool", # one exact name
]
A pattern with no * matches the name itself and anything that continues it after a /, : or .; a trailing separator (@acme/) is allowed. Matching is case-insensitive. PyPI names are compared in their normalised form, where acme.core, acme-core and acme_core are one project, and there a prefix also ends at -: acme covers acme-core and acme-utils. The same list covers the vulnerability scan, the version check and the MCP tools. A listed package is withheld before any request is built: it is not sent, not kept in the lookup caches (entries cached before you listed it are removed the next time a scan runs), and the status line (and the MCP reports' skipped_private) says how many were withheld, so a withheld package is never reported as clean or up to date.
If the config file exists but cannot be read or parsed, ccmd prints a warning, says so in the status line, and disables every package lookup until it is fixed, because falling back to the defaults would send the names the file was meant to hold back. This includes any unknown key at any level, such as a misspelt [privcy] section, private_package, or a [privacy] list written inside another table ([vulncheck.privacy]): the file is strict so that a typo cannot leave the list silently empty. A missing file is not an error: the defaults apply and nothing is withheld.
The npx cache (~/.npm/_npx/) contains full node_modules trees. ccmd scans every transitive dependency for:
preinstall, install, postinstall) — the primary vector for supply chain attacksThe intended workflow for cleaning vulnerable packages:
V to scan all packages for CVEsf to show only vulnerable items (non-matching items are dimmed)m to mark all vulnerable items for deletiond to delete — frees space and forces fresh downloadsccmd includes an MCP server that lets AI assistants like Claude query and manage your caches conversationally. Build with the mcp feature and run ccmd mcp to start the stdio transport.
# Install with MCP support
cargo install ccmd --features mcp
# Or build from source
cargo build --release --features mcp
Configure in Claude Code:
claude mcp add ccmd -s user -- ccmd mcp
Then ask Claude things like:
"list my caches"
┌──────────────────┬────────────┬───────┐
│ Provider │ Size │ Items │
├──────────────────┼────────────┼───────┤
│ HuggingFace Hub │ 28.93 GiB │ 447 │
│ ~/Library/Caches │ 11.18 GiB │ 234 │
│ uv │ 3.16 GiB │ 149 │
│ Homebrew │ 1.55 GiB │ 170 │
│ Cargo │ 719.77 MiB │ 614 │
│ ... │ │ │
└──────────────────┴────────────┴───────┘
Total: ~53.6 GiB across 2,167 items
"find the most vulnerable npm packages"

"find outdated packages in my cache"

Available tools: list_caches, get_summary, search_packages, get_package_details, scan_vulnerabilities, check_outdated, preview_delete, delete_packages. See docs/mcp.md for full details.
src/
├── main.rs # CLI bootstrap, terminal setup, subcommand routing
├── config.rs # TOML config + CLI flag merging
├── app.rs # Event loop, key handling, rendering
├── tree/
│ ├── node.rs # TreeNode, CacheKind enum
│ └── state.rs # TreeState, FilterMode, visibility, marking
├── scanner/
│ ├── mod.rs # Background scan orchestrator, package discovery
│ └── walker.rs # Directory traversal, size calculation
├── providers/
│ ├── mod.rs # Provider dispatch, safety levels, upgrade commands
│ ├── huggingface.rs # HuggingFace Hub semantic decoding
│ ├── pip.rs, uv.rs # Python package providers
│ ├── npm.rs # npm + npx + node_modules scanning
│ ├── cargo.rs # Rust crate provider
│ └── ... # 15 more providers (Yarn, pnpm, Bun, Maven, Gradle, Go, SwiftPM, Xcode, Homebrew, …)
├── security/
│ ├── mod.rs # Scan orchestration, vulnerability filtering
│ ├── osv.rs # OSV.dev API, version comparison, fix extraction
│ └── registry.rs # PyPI, crates.io, npm, Maven Central, proxy.golang.org lookups
├── mcp/ # MCP server (optional, behind `mcp` feature flag)
│ ├── mod.rs # ServerHandler, tool routing, cache scanning
│ ├── tools.rs # Tool parameter and response types
│ └── safety.rs # Delete safety enforcement
└── ui/
├── tree_panel.rs # Left pane — tree with status icons
├── detail_panel.rs # Right pane — metadata, vulns, guidance
├── dialogs.rs # Delete confirmation, help overlay
└── theme.rs # Color and style constants
std::thread + mpsc::channelContributions and feedback are welcome!
cargo fmt and cargo clippy before submitting.docs/adding-a-provider.md — it covers the wire-up sites, the OSV/registry design questions, and the test-sharpening rules distilled from every provider we've shipped so far.Julien Simon — julien@julien.org — github.com/juliensimon
MIT — see LICENSE for details.
Loading reviews...
GitHub checked 39h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.