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

MCP `runs`: list a repository's recent runs, with the same rules as GET …/runs #3831

shipped production is serving it opened this has it
opened this

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.

Files: src/http/mcp.ts, test/mcp-runs.test.ts (new), docs/MCP.md (one line).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs