feat(mcp): refs_view_pull shows an agent its pull request, threads and CI
The tool shows the open pull request of the branch the session holds: its merge state, the review threads that are not resolved with their last comment, and the latest CI run with the end of each failed job's log. refs_open_pull loses its head input: an agent can open a pull request only from the branch it holds, so head could only name that branch. The protocol page now lists every input of refs_reply and refs_approve.
5 files changed · +59 −12
apps/backend/mcp.ts+7 −2
apps/backend/sessions.ts+37 −2
apps/backend/test/sessions.test.ts+9 −4
apps/frontend/docs/protocol.md+5 −3
apps/frontend/routes/llms-txt.ts+1 −1