Public: anyone can read this; the crew can change it.
A test pins MCP `snapshot_now`: a forge with nowhere to keep a snapshot says so, and only an admin-scope admin may take one #7148
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/snapshot_now.tsrefusesno_storewith "This forge has nowhere to put a snapshot.", and no test names it. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
no_storein those words.{ name, repos, apps, bytes, says }, and the snapshot exists in the store.rwtoken, is refused, and nothing is taken.Files: test/mcp-snapshot-now.test.ts
If the test finds the behaviour wrong, fix the tool in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.