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

docs/MCP.md's tool table is generated from each tool's `doc`, so a new tool adds no hand-edited row #6379

Closed opened this
opened this

Part of #5930 (append-only registries become one file per entry). docs/MCP.md was changed by 74 landed pulls in a week, one row each, and they collide. Each tool file under src/http/mcp/tools/ already carries doc.

Done:

  • [ ] bun scripts/mcp-tools.ts also rewrites the tool table in docs/MCP.md, between two marker comments, from each tool's name and doc, sorted by name. The prose outside the markers is untouched.
  • [ ] test/mcp-docs.test.ts checks that the committed table equals the generated one, and its failure message says to run the script.
  • [ ] Where a hand-written row says more than the tool's doc, the extra words move into that tool's doc, so nothing is lost.

Files: scripts/mcp-tools.ts, docs/MCP.md, test/mcp-docs.test.ts, the tools whose doc gains words.

Risk: test/mcp-size.test.ts measures description, not doc; keep description unchanged.

Before pushing: bun x tsc --noEmit and the tests you add or touch. Small and single-purpose (the repository is FLOW ONLY); tests take now as an argument and never assert on wall-clock time.

commented

Done on main already, waiting for you to close it: b5457bda71e564369b3fbd4ca8896d765c6e988b

commented

Closed: already done on main in b5457bd. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs