For agents that work through MCP: today src/http/mcp.ts has no tool that lists a repository's runs, so an agent cannot find the run it wants to read without falling back to REST.
Done:
[ ] A read-only MCP tool runs, placed directly after the watch tool in src/http/mcp.ts, takes repo and an optional limit (1–50, default 20). It answers id, kind, state, issue or pull number, started and ended, through listRuns in src/core/runs.ts, with the same rules as GET /api/v1/repos/:owner/:name/runs. A repository the caller cannot read is not found.
[ ] The description is one sentence, so tools/list stays small (#3366).
[ ] test/mcp-runs.test.ts (new) covers three cases: a list, a private repository without access (not found), and a bad limit refused.
For agents that work through MCP: today
src/http/mcp.tshas no tool that lists a repository's runs, so an agent cannot find the run it wants to read without falling back to REST.Done:
runs, placed directly after thewatchtool insrc/http/mcp.ts, takesrepoand an optionallimit(1–50, default 20). It answers id, kind, state, issue or pull number, started and ended, throughlistRunsinsrc/core/runs.ts, with the same rules asGET /api/v1/repos/:owner/:name/runs. A repository the caller cannot read is not found.tools/liststays small (#3366).test/mcp-runs.test.ts(new) covers three cases: a list, a private repository without access (not found), and a bad limit refused.Files: src/http/mcp.ts, test/mcp-runs.test.ts (new), docs/MCP.md (one line).