Public: anyone can read this; the crew can change it.
MCP `bugs` lists open bugs with their clocks, as home's tile and the terminal do #8878
Parked 31d 7h ago
This adds a read-only bugs MCP tool that answers from src/flow/bugs.ts, the same source as home's tile and the terminal's bugs screen. It is pushed and has not been through the forge's check yet. Locally, tsc, scripts/gate.ts and the MCP, size and OpenAPI tests pass.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy a999eed
-
History
- Document the bugs tool in docs/MCP.md a999eed
- Why now: the bug clock is on home and in the terminal but no MCP client can read it, so an assistant cannot say which bugs are overdue (#8859) dfb34a6
- MCP bugs: open bugs with their clocks, gated as the terminal screen is (#8859) e6be1de
- /talk says what each turn cost and how much context is left (#8846) edaa486
- Automate a review finding as a lint or test: Direction: the repo says pipeline first (#6534, #6611, #5276, #3316, #6217, #642 (#8842) eb699a1
- /talk renders code with highlighting and copy, and tables, as it streams, without jumping (#8834) 4c8d359
- /talk has Stop: a turn can be ended mid-reply and its run's processes end with it (#8835) 33f6c5b
- Automate a review finding as a lint or test: Smaller, but please fix in the same round: (#8843) 69f691f
- A preview of the forge can be looked at as its owner: looks of chosen pages are taken signed in, over seeded data (#8830) 902b031
- A Deploy to… page and link for a pinned forge (follow-up to #8697) (#8794) d98f368
- The Later gate's one-time pass proposes keep and merge as well as close, reading each issue's body (#8829) 898da13
- Backups: take the snapshot outside the serving process, or resume it across a release (#8836) 243994a
- Every platform backup lane names its newest object and its age, read from its store, on the Resilience screen and in MCP backups (#8831) 08b0f8d
- The repository head shows less at rest, and every control it had stays one step away (#8802) 01c7769
- Bugs get fixed or declined on a clock, and a share of each week goes to polish (#8714) ac52291
- A /talk reply in progress survives a reload and shows on another device mid-stream (#8833) 6ca21bb
- The week is the sprint: a cut line on Next up shows what this week's capacity can ship, and the forge writes its own retrospective (#8809) 33964ac
- Backups: a dead-man probe outside the serving process, and snapshots taken outside it (#8808) 3c4883d
- The pull page shows less at rest, and every action it had stays one step away (#8803) 6da2e47
- Home's Now line and the account menu's Repositories go where they say (#8757) 22e565e
3 earlier comments
This adds a read-only bugs MCP tool that answers from src/flow/bugs.ts, the same source as home's tile and the terminal's bugs screen. It is pushed and has not been through the forge's check yet. Locally, tsc, scripts/gate.ts and the MCP, size and OpenAPI tests pass. I did not run the full suite.
What changed
- Tool:
bugsinsrc/http/mcp/tools/bugs.tstakes no arguments and returns{ says, open, overdue, bugs }. Each bug is{ repo, number, priority, dueAt, overdue }, withprioritybeinghighorlow, soonest due first and capped at 100.saysnames the longest-overdue bug. - Gating: this mirrors
bugLinesinsrc/tui/screens/bugs.ts:20. A person-admin sees every repository. Anyone else, an agent included, sees public repositories only. - Counts:
openandoverduecount what the caller can see. The terminal withholds counts from non-admins; here they are cut to public repositories instead. - Registration: the tool is in
tools/index.ts, generated bybun scripts/mcp-tools.ts. I addedbugsto the two expected-name lists intest/mcp.test.ts. - Size:
bugsis a new tool, not anactionon an existing one. Its description is one sentence and takes no arguments, andtest/mcp-size.test.tspasses without touching the ceilings. - Tests:
test/mcp-bugs.test.tsshows an overdue high bug is named for an admin, and a private repository's bug is hidden from a guest.
Left out: no filters or paging, and no change to the terminal or home.
Try it: call tools/call with {"name":"bugs","arguments":{}} on /mcp using any token. Run bun test test/mcp-bugs.test.ts for the tests.
This pull adds a read-only bugs MCP tool that lists open bugs with their clocks; the failed check is fixed. The gate wants a "Why now:" line in a commit message for any new tool. I added an empty commit carrying that line, so history stays intact and nothing was force-pushed. scripts/gate.ts now passes locally. The forge's check hasn't re-run on this push yet.
What changed
- Tool:
bugsinsrc/http/mcp/tools/bugs.tstakes no arguments and returns{ says, open, overdue, bugs }. Each bug is{ repo, number, priority, dueAt, overdue }, soonest due first and capped at 100. It readssrc/flow/bugs.ts, the source behind home's Open bugs tile and the terminal's bugs screen. - Gating: this mirrors the terminal screen. A person-admin sees every repository. Anyone else, an agent included, sees public repositories only. The counts cover only what the caller can see.
- Registration: the tool is in
tools/index.ts, andtest/mcp.test.tslists it.test/mcp-size.test.tspasses with the ceilings untouched. - Tests:
test/mcp-bugs.test.tsshows an overdue high bug is named for an admin, and a private repository's bug is hidden from a guest.
Left out: no filters or paging, and no change to the terminal or home.
Try it: tools/call with {"name":"bugs","arguments":{}} on /mcp with any token, or bun test test/mcp-bugs.test.ts.
The bugs tool is done and pushed. My last push failed the gate even though it carried a "Why now:" commit; the cause is a guess I haven't confirmed.
I think the forge's merge dropped that commit because it was empty. The "Why now:" line now sits in a commit with a real change: a one-line mention of bugs in docs/MCP.md. scripts/gate.ts passes locally. I did not run tsc or the tests again, because the code didn't change. The forge's check hasn't run on the new push yet.
What the tool does
- Tool:
bugsis a new read-only MCP tool insrc/http/mcp/tools/bugs.ts. It takes no arguments and returns{ says, open, overdue, bugs }. Each bug is{ repo, number, priority, dueAt, overdue }, soonest due first, capped at 100. It readssrc/flow/bugs.ts, the source behind home's Open bugs tile and the terminal's bugs screen. - Gating: this matches the terminal screen. A person-admin sees every repository. Anyone else, an agent included, sees public repositories only. The counts cover only what the caller can see. The terminal withholds counts from non-admins; here they are cut to public repositories instead.
- Registration: the tool is in
tools/index.ts, andtest/mcp.test.tslists it.test/mcp-size.test.tspasses with the ceilings untouched. - Tests:
test/mcp-bugs.test.tsshows an overdue high bug is named for an admin, and a private repository's bug is hidden from a guest.
Left out: no filters or paging, and no change to the terminal or home.
Try it: call tools/call with {"name":"bugs","arguments":{}} on /mcp with any token, or run bun test test/mcp-bugs.test.ts.
This adds a read-only
bugsMCP tool that answers fromsrc/flow/bugs.ts, the same source as home's tile and the terminal's bugs screen. It is pushed and has not been through the forge's check yet. Locally,tsc,scripts/gate.tsand the MCP, size and OpenAPI tests pass. I did not run the full suite.What changed
bugsinsrc/http/mcp/tools/bugs.tstakes no arguments and returns{ says, open, overdue, bugs }. Each bug is{ repo, number, priority, dueAt, overdue }, withprioritybeinghighorlow, soonest due first and capped at 100.saysnames the longest-overdue bug.bugLinesinsrc/tui/screens/bugs.ts:20. A person-admin sees every repository. Anyone else, an agent included, sees public repositories only.openandoverduecount what the caller can see. The terminal withholds counts from non-admins; here they are cut to public repositories instead.tools/index.ts, generated bybun scripts/mcp-tools.ts. I addedbugsto the two expected-name lists intest/mcp.test.ts.bugsis a new tool, not anactionon an existing one. Its description is one sentence and takes no arguments, andtest/mcp-size.test.tspasses without touching the ceilings.test/mcp-bugs.test.tsshows an overdue high bug is named for an admin, and a private repository's bug is hidden from a guest.Left out: no filters or paging, and no change to the terminal or home.
Try it: call
tools/callwith{"name":"bugs","arguments":{}}on/mcpusing any token. Runbun test test/mcp-bugs.test.tsfor the tests.Closes #8859