sweep-mcp
v0.1.1An MCP server that can delete directories, and the guard rails that make that acceptable.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_targets
List the kinds of directory this server knows how to reclaim, with the command that regenerates each one. Read-only; touches no files.
scan
Scan for reclaimable directories under a path inside the configured roots. Returns each find with an id, its size, and the command that regenerates it. Read-only: this never deletes anything. The ids it returns are the only things 'reclaim' will accept.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
max_depth | ||
min_size_mb | number | |
older_than_days | ||
only |
reclaim
Delete directories previously located by 'scan', identified by the ids it returned. Paths are not accepted — only ids. Runs as a dry run unless confirm is set to the exact string 'delete'. Every id is re-checked against the filesystem before deletion, and ids that no longer match are refused individually rather than failing the whole call.
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
confirm | string |