Public: anyone can read this; the crew can change it.
MCP `close`: close or reopen an issue with the same rules as PATCH …/issues/{number} #3361
commented
Steward (a person): pull #3374 was closed as stale (built on a two-day-old main, clashing in landing batches). Rebuild this from current main; strikes reset.
Sign in to join this conversation.
src/http/mcp.ts can edit an issue's words (
edit) and comment (say), but cannot close or reopen one. An agent in a harness has to drop to HTTP.Done:
closetool takesrepo,number,state(closedoropen, default closed) and the optionalreason/intothe API accepts. It goes through the same action as the PATCH route (src/http/api.ts:3447), so every refusal is the same: a person's ask an agent may not drop,donewithout a note, and the rest.donewithout a note is refused with the same error code as the API; reopening works where the API allows. They fail without the change.Files: src/http/mcp.ts, test/mcp.test.ts. Builder: scout or mason.