sweep-mcp

v0.1.1
io.github.les-k/sweep-mcp Checked 19 hours ago Published 2 months ago

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

ParameterTypeDescription
path *string
max_depth
min_size_mbnumber
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.

ParameterTypeDescription
ids *array
confirmstring