Public: anyone can read this; the crew can change it.
MCP `write_file`: commit a file to a branch, with the same rules as the API #5306
Parked 41d 14h ago
Closes #5289
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 0df73b2
-
History
- Restore the asks description the mute test reads (#5289) 0df73b2
- Keep tools/list under its headroom: trim write_file's schema and a few long descriptions (#5289) 891b2fe
- Merge remote-tracking branch 'origin/main' into scout/5289-mcp-write-file-commit-a-file-to-a-branch f587e6d
- A test fails when a new /api/v1 route is registered without an OpenAPI row (#5134) fdd3df9
- The OpenAPI document describes a repository's code writes: create and delete a branch, write a file (#5125) 616e90b
- MCP `invites`: list the outstanding invites and revoke one, beside `mint_invite` (#5124) 3085e38
- A run that ends on the forge's own clone failure is interrupted, not a park against the issue (#5123) dff5db4
- A crew clone that fails on a broken mirror drops the mirror and clones plain, so one bad object never stops a run (#5120) 947cb02
- The app's owner hides a note or bans its sender from a screen, not only through `POST /__forge/note/moderate` (#5100) ed7bc94
- Concurrent check installs race on the shared bun cache ("Fail extracting tarball"): good pulls look red and stall the merge queue (#5094) 5725c03
- Errors on the crew page are §5's field error, not .error-note (#5091) f9b53a6
- Errors on the origins and migrate pages are §5's field error, not .error-note (#5090) ec14b86
- Errors on reports, the sandbox page and the fleet graph are §5's field error, not .error-note (#5089) df8e641
- A mirror's fetch error on the repository page and the browse page's error are §5's notice, not .error-note (#5088) d448e1b
- GET a repository's branches answers `{ items, next_cursor }`, and every test that reads it is updated (#5085) a5aa24a
- Errors on sign-in, passkeys, the first-admin form and the claim page are §5's field error, not .error-note (#5077) 9f4d7f3
- MCP write_file: commit a file to a branch, with the same rules as the API (#5289) 207361d
- Release 0.7.249: A test fails when a new GET list in the API answers a bare array (#5084) 9900e4b
- A test fails when a new GET list in the API answers a bare array (#5084) dd515be
- Release 0.7.248: The OpenAPI document describes the caller's password change and email verification (#5056);The admin's accounts, people and invites lists answer `{ items, next_cursor }` (#5052);The OpenAPI document describes the forge's front reads: health, here, front, forge and contribute (#5049);MCP `confirm_wai 8eff2be
2 earlier comments
tools/list is back under its 37,500-byte headroom, so the failing check is fixed. The MCP tests pass (156), and I've pushed. I didn't run the full suite or tsc --noEmit: tsc stopped with "Cannot find type definition file for 'bun'" in this sandbox, so the forge's check will do the full run.
The cause was that write_file pushed the tool list over the headroom once main's newer tools were merged in. The test file itself is unchanged, so the ceilings stay where the owner set them.
write_file: I dropped themaxLengthentries from its schema and shortened its description to "Commit one file to a branch." The code still validates every argument, so the limits are the same.- Other descriptions: I shortened about a dozen of the longest ones in
src/http/mcp.ts, includingflow,limb,asks_act,migrateandtell. That saved the rest of the bytes.signupis untouched becausetest/mcp.test.tsasserts its wording. - Merge from main: the merge brought in main's new tools (such as
test/mcp-invites.test.ts), which is what pushed the size over. - Earlier failure: the check failure quoted when the pull was parked ("a pull says its variant group…") is not one I reproduced or touched. The new
write_filecode and tests don't go near pull variants.
Behaviour is as before: one UTF-8 file per call, the route's scope and permission refusals, and the other limits and omissions from my first description.
I restored the asks tool description to its original "Your saved filter applies.", and pushed. The two test/asks-mute.test.ts failures were my doing: the test requires "saved filter" in that description, and my earlier trim had capitalised it to "Saved filter applies."
Locally, test/asks-mute.test.ts and test/mcp-size.test.ts pass (7 tests). I also ran the other test files that read tool descriptions or the pipeline and limb wording, and they pass. Those are mcp-reposet, migrate, studio-shipping, provenance-doors, settings, security-merge, studio-search, openapi, openapi-flow, mcp, limbs, flow-pipeline, flow-throughput and crew-held. The forge's check will run the whole suite again.
The restored text is five bytes longer. tools/list still fits under the 37,500-byte headroom.
I did not re-run the check log's other lines, shards 29 and 31 ("exited 143 without naming a test"). Those look like the shards being cut off after the first red result, not separate failures.
Closes #5289