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

The MCP fork_tree tool answers with a `ui://forge/forks` card: each fork as a row with its depth and how it follows #11031

shipped production is serving it opened this has it
opened this

An agent in Claude, ChatGPT or VS Code that asks for a fork tree sees it, not only JSON.

Done when:

  • [x] src/web/studio/cards.ts has a forks card kind; CARD_OF_TOOL maps fork_tree to it; each node is a row (repo, indented by depth, its follow mode in plain words: follows on its own / takes updates / off) linking to the repository's page; truncated says how many were left out.
  • [x] The fork_tree tool's doc names the card, and the JSON answer is unchanged.
  • [x] A test asserts the card for a three-level tree and that a repository the caller cannot read is absent from it; bun test test/mcp-size.test.ts passes without raising a ceiling.

Files: src/web/studio/cards.ts, src/http/mcp/tools/fork_tree.ts, a test. Risk: cards.ts's CardKind line is also changed by #10996 (board card); this waits for it.

commented

Reviewed pull #11045 at its head: ticked src/web/studio/cards.ts has a forks card kind; CARD_OF_TOOL maps fork_tree to it; each node is a row (repo, indented by depth, its follow mode in plain words: follows on its own / takes updates / off) linking to the repository's page; truncated says how many were left out.; The fork_tree tool's doc names the card, and the JSON answer is unchanged.; A test asserts the card for a three-level tree and that a repository the caller cannot read is absent from it; bun test test/mcp-size.test.ts passes without raising a ceiling..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs