Public: anyone can read this; the crew can change it.
MCP `restore_drill`: restore the newest snapshot as a drill and say its verdict, as the Backups page's button does, for a forge admin #5427
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: "is my backup actually restorable?" is one call from any harness.
backupsDrill(src/web/pages/backups.ts) has no twin, and the weekly restore drill is real work the owner asked for (#1147).Done:
restore_drillwith no arguments, admin only (refused as the page refuses), callssnapshotsOf(ctx.app).drill(). It answers{ verdict, failedStep?, says }, withsaysworded as the page's flashes ("The drill restored green.", "The drill failed at <step>.", no snapshots, could not run). A failure is a one-sentence answer, never a throw.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-restore-drill.test.ts.
Risk: test/mcp-size.test.ts caps tools/list, so keep the description to one short sentence. #5415, #5422 and #5423 add backup tools nearby; place this one after whichever has landed.