snapper-mcp

v0.1.1
snapper-mcp Checked 12 hours ago Published 11 months ago

MCP server for managing BTRFS snapshots via Snapper

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

snapper

Manage BTRFS snapshots via Snapper. A unified tool for all snapshot operations. Actions: - configs: List available snapper configurations - list: Show all snapshots for a config - create: Create a new snapshot (optionally with description) - delete: Remove a snapshot by number - rollback: Restore system to a previous snapshot (requires reboot) - cleanup: Prune snapshots using an algorithm (number, timeline, empty-pre-post) - diff: Show file differences between two snapshots - status: List changed files between two snapshots Current default config: root Using sudo: True Examples: - List conf…

ParameterTypeDescription
action *The snapper action to perform: list (show snapshots), create (new snapshot), delete (remove snapshot), rollback (restore to snapshot), cleanup (prune by algorithm), diff (compare snapshots), status (s…
cleanup_algorithmCleanup algorithm: 'number' (keep N snapshots), 'timeline' (keep by age), 'empty-pre-post' (remove empty pre/post pairs)
configSnapper configuration name (e.g., 'root', 'home'). Uses default from SNAPPER_MCP_DEFAULT_CONFIG env var if not specified. Use 'configs' action to see available configs.
descriptionDescription for new snapshot (used with 'create' action)
snapshot_idSnapshot number for delete, rollback, or start of range for diff/status
snapshot_id_endEnd snapshot number for diff/status range (e.g., diff between snapshot 5 and 10)
sync_after_deletebooleanSync filesystem after delete operation

btrfs_health

Check BTRFS filesystem health and status. Monitor disk usage, errors, and maintenance operations. Actions: - usage: Comprehensive filesystem space usage - devices: List devices in the BTRFS array - stats: Device error statistics (corruption, read/write errors) - scrub_status: Status of scrub operation (data integrity check) - balance_status: Status of balance operation (data redistribution) - df: Space allocation by data type (Data, Metadata, System) - filesystem_show: Filesystem information and device list Current default mount: / Using sudo: True Examples: - Check usage: action="usage", m…

ParameterTypeDescription
action *The btrfs action: usage (space usage), devices (list devices), stats (error statistics), scrub_status (scrub progress), balance_status (balance progress), df (data/metadata usage), filesystem_show (fi…
deviceSpecific device path for stats action (e.g., '/dev/sda1'). If not specified, uses mount point.
mount_pointBTRFS mount point (e.g., '/', '/home'). Uses default from SNAPPER_MCP_DEFAULT_MOUNT if not specified.