caddy_revert
Roll back Caddy configuration by listing, saving, or applying snapshots. Restore a previous config state after changes.
Instructions
Manage config snapshots for rollback. Snapshots are auto-captured before caddy_load (last 10). By default they live in memory only and are LOST when this server restarts -- set CADDY_MCP_SNAPSHOT_DIR to a writable directory to persist them across restarts (they contain full Caddy configs, so pick the location deliberately). Actions: 'list' shows snapshots with timestamps, 'save' manually captures the current config, 'apply' restores a snapshot (requires confirm=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Snapshot index for 'apply' (0 = most recent, default) | |
| action | Yes | Action to perform | |
| confirm | No | Must be true to actually apply a snapshot (safety) |