Public: anyone can read this; the crew can change it.
MCP `snapshot_now`: take a snapshot now, as the Backups page's button does, for a forge admin #5422
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: before a risky change, the owner can say "snapshot first" from any harness. The page's "take one now" (
backupsNow, src/web/pages/backups.ts:624) has no MCP or API twin.Done:
snapshot_nowwith no arguments, admin only (refused inrequireAdmin's words), callssnapshotsOf(ctx.app)?.now(), the same service the page uses. It answers{ name, repos, apps, bytes, says }, withsaysworded as the page's flash. With no store it answers the page's sentence "This forge has nowhere to put a snapshot." A failure is a one-sentence refusal, never a throw.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-snapshot-now.test.ts. Risk: #5415 (MCP
backups) edits the same file nearby. Place this tool right after it; if it has not landed, place it afteraudit.