Public: anyone can read this; the crew can change it.
MCP `backups`: where snapshots go and the last ones taken, for a forge admin #5425
Parked 40d 1h ago
I added a read-only MCP tool backups that takes no arguments, is admin-only, and answers from the same functions the /settings/backups page uses. The four tests you named pass and the type check is clean. I didn't run the rest of the suite.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy d49281c
-
History
- MCP backups: where snapshots go, the last ones, the mirror, for a forge admin (#5415) d49281c
- The OpenAPI document describes an issue's teams, labels and private repository, and a pull's labels (#5057) 2d4c142
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:36a5qcqa3a was degraded 59 minutes today: trevato/forge: "test/og-route.test.ts > og cards > (unnamed)" failed on 3 pulls in the last hour — the lane's red, not … (#5360) 42f0f07
- MCP `repo_labels`: list, create and remove a repository's labels (#5030) 17d29f7
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:fwx1ip8abu was degraded 61 minutes today: trevato/forge: "the merge queue > after a red batch, the good pulls go back into ONE candidate up to the cap, not one g… (#5358) 8d6a488
- POST /contents commits to a protected default branch: commitToBranch skips repo.protectDefault and size caps (#5143) 7013141
- MCP `reports`: list a repository's reports from outsiders, and accept or dismiss one (#5172) 3f053f4
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2tcvuk57nu was degraded 45 minutes today: trevato/forge: "the merge queue > a gate that never answers is abandoned at the deadline, and the next sweep lands (#34… (#5357) 02fc349
- The Claude Code plugin's /forge gains `plan`: show the planner's wave and nod or redirect it (#5346) 65efa27
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3a5ct9bycd is past its budget: trevato/forge: "test/toolbar-live.test.ts > (unnamed)" failed on 3 pulls in the last hour — the lane's red, not theirs;… (#5359) cb344e6
- The OpenAPI document describes itself, a migration job and its stream, and opening an app (#5262) 1d1f092
- docs/MCP.md describes the feed and returns tools: `feed_chips`, `next_steps`, `returns`, `thought` (#5303) 5257d6d
- docs/MCP.md describes the accounts and access tools: `access`, `account_role`, `mint_invite`, `signup`, `whoami_can` (#5294) 0f6af28
- docs/MCP.md describes the system and cloud tools: `system`, `cloud_account`, `cloud_accounts` (#5304) 0775513
- A test fails when a new GET /api/v1 route names no Server-Timing phase (#5265) 20df7ab
- GET …/runs/{id} names its Server-Timing phases: session, run, render (#5333) 13a6da5
- The OpenAPI document describes GET /api/v1/passport/health (#5330) b30bd7c
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:ky51wt3erj was degraded 74 minutes today: trevato/forge: "tools/list stays under 40 KB, with 3 KB of headroom (37,000 bytes)" failed on 3 pulls in the last hour … (#5185) b7858bb
- The OpenAPI document describes a person's sign-ins and ending one (#5192) 48cb64e
- The OpenAPI document describes editing a pull, its reviews, approving it here and assigning an issue or pull (#5261) edc5e3c
I added a read-only MCP tool backups that takes no arguments, is admin-only, and answers from the same functions the /settings/backups page uses. The four tests you named pass and the type check is clean. I didn't run the rest of the suite.
What it returns
- Destination:
destinationis{ kind: sealed | dir | env, where }, and never a credential. With no destination it isnull, andsayscarries the page's sentence. I moved that sentence into an exportedNO_DESTINATIONinsrc/web/pages/backups.ts, so the page and the tool can't drift apart. - Snapshots: the newest fourteen from the store, each as
{ key, at, bytes }. If the store can't be listed,listingcarries the error rather than failing the call. - Mirror:
mirrorhasconfigured,where,reachable,syncedAt,newestandproblem, which is themirrorNeedsentence. - Non-admins: the tool isn't listed for them, and a direct call is refused with the page's 404 words.
Tests and docs
test/mcp-backups.test.tshas the three cases: no destination, a local destination with one snapshot, and a non-admin refused. The tool is also added to the expectedtools/listintest/mcp.test.ts.docs/MCP.mdhas one new row.
Size cap
- The tool itself fits, but
tools/listwas only 3 bytes under the 37,000 headroom intest/mcp-size.test.ts, so adding it put the list over. I shortened about a dozen other tool descriptions by a few words each, without changing what they say. I did not raise the ceiling. test/mcp.test.tsasserts on some description wording, so two phrases that test checks (the sign-up descriptions) are kept as they were.
Left out
- It doesn't report the last snapshot failure or the last restore drill, which the page shows. I kept to the destination, snapshots and mirror you listed.
To try it: as an admin, call the backups tool from any MCP client.
🤖 Generated with Claude Code
I added a read-only MCP tool
backupsthat takes no arguments, is admin-only, and answers from the same functions the /settings/backups page uses. The four tests you named pass and the type check is clean. I didn't run the rest of the suite.What it returns
destinationis{ kind: sealed | dir | env, where }, and never a credential. With no destination it isnull, andsayscarries the page's sentence. I moved that sentence into an exportedNO_DESTINATIONinsrc/web/pages/backups.ts, so the page and the tool can't drift apart.{ key, at, bytes }. If the store can't be listed,listingcarries the error rather than failing the call.mirrorhasconfigured,where,reachable,syncedAt,newestandproblem, which is themirrorNeedsentence.Tests and docs
test/mcp-backups.test.tshas the three cases: no destination, a local destination with one snapshot, and a non-admin refused. The tool is also added to the expectedtools/listintest/mcp.test.ts.docs/MCP.mdhas one new row.Size cap
tools/listwas only 3 bytes under the 37,000 headroom intest/mcp-size.test.ts, so adding it put the list over. I shortened about a dozen other tool descriptions by a few words each, without changing what they say. I did not raise the ceiling.test/mcp.test.tsasserts on some description wording, so two phrases that test checks (the sign-up descriptions) are kept as they were.Left out
To try it: as an admin, call the
backupstool from any MCP client.🤖 Generated with Claude Code
Closes #5415