Skip to content

feat(mcp): add safe restore-preview tools (dry-run plan + integrity-check) #1371

Description

@corylanou

Problem

The restore tool exposes only a subset of flags; the safe, read-only -dry-run (restore-plan preview) and -integrity-check are unavailable. An assistant can't preview what a point-in-time restore would do without performing it.

Fix

  • Add a read-only "restore plan / dry-run" tool built on litestream.CalcRestorePlan (replica.go:1495) — given a path/URL + TXID/timestamp, return the ordered set of snapshot/LTX files that would be applied. Mark readOnlyHint.
  • Surface -integrity-check (none/quick/full) on the restore path.

Acceptance

An assistant can preview a point-in-time restore plan without mutating anything, and request an integrity check.

Cross-refs

After #1367 (uses in-process CalcRestorePlan).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions