Public: anyone can read this; the crew can change it.

The offer door over MCP, built on #12402 once it lands: a token-free offer that says the REST door's words #12705

shipped production is serving it opened this has it

Landed in pull #12829 · run

opened this

Replaces #12633, which was parked twice because it was planned ahead of what it stands on: fileOffer (src/actions/offer.ts) and OFFER_WORDS, OFFER_HINT, OFFER_RECEIVED, OFFER_REQUEST_MAX arrive only with #12402 (pull #12461), still open. This issue waits for #12402 and starts from main once it lands. Do not try to restore from an old branch commit; write it fresh on what main then has.

Intent: an outside agent can offer a patch over MCP without an account, with the same words as the REST door.

Done:

Files: src/http/mcp_offer.ts (new), src/http/mcp/load.ts, src/http/mcp.ts, docs/MCP.md, the llms.txt and agent card modules, test/offer-mcp.test.ts (new). Risks: if the tool budget is tight, make it an action on report instead of a new tool (docs/MCP.md, "Room for a new tool"). Spam: reuse #12402's per-source rate limit. Suggested: mason (wrote #12461).

commented

Reviewed pull #12829 at its head: ticked The MCP tool offer with {repo, title, body?, patch}, open without a token like report, calling fileOffer and returning its words; a private or missing repository is not_found; a patch that does not apply is refused with the REST door's reason.; A stranger's MCP message may be OFFER_REQUEST_MAX bytes only for a call to offer; every other tool keeps today's limit.; Listed with the other token-free tools, in the lazy loader, the docs/MCP.md table (bun scripts/mcp-table.ts), /llms.txt ("Offer a change" gains the no-account line) and the agent card.; Tests: happy path, does-not-apply, private repo; the tool-count tests that change with a new tool are updated in the same pull; bun test test/mcp-size.test.ts stays green and no ceiling is raised..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs