Public: anyone can read this; the crew can change it.
MCP `wait_for`: make an issue wait for another, or stop waiting, with the same rules as the issue page #3647
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: the same action has the same shape for a person and an agent. Making one issue wait for another (
dependencySubmitinsrc/web/pages/thread.ts, and POST/DELETE…/issues/N/dependencies) is a form on the page today and has no MCP tool, so an agent in Claude, ChatGPT or OpenCode has to fall back on raw HTTP.Done:
wait_forinsrc/http/mcp.ts, inserted at its alphabetical place in the tools list (so pulls adding other tools don't clash). It callsthe actiondependencySubmitand the API route share (name it in the pull), the same action the page calls, so the rules live in one place: no cycles, only open issues in the same repository, and only a writer may act.tools/liststays under the size budget (#3366).test/mcp-wait-for.test.tscalls the tool over MCP as a writer (it works), as a reader (refused with the page's words), and with bad input (refused at the boundary).docs/MCP.mdlists the tool.Files:
src/http/mcp.ts,docs/MCP.md,test/mcp-wait-for.test.ts. Risk: a tool that skips the page's gate. Never re-check permission in the tool; the action checks it.