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

The system MCP tool answers `kind: "pages"` with the same page-budget rows /system shows #11545

open not picked up yet opened this
opened this

Intent: an agent asks the same question the owner sees on /system and gets the same words. The other half of #11457.

Done:

  • [ ] src/http/mcp/tools/system.ts accepts kind: "pages" beside routes and csp (no new tool, docs/MCP.md "Room for a new tool"), answering pageBudgetRows from src/perf/page_budget_read.ts for a forge admin or telemetry:read, the same gate as routes
  • [ ] the tool's doc grows by one short clause only; bun test test/mcp-size.test.ts passes without raising any ceiling
  • [ ] a test calls the tool with kind: "pages" and checks it returns one row per PAGE_BUDGETS entry with the same page words the /system section renders; an unknown kind still answers invalid naming pages
  • [ ] one line in docs/MCP.md where the system tool's kinds are listed

Files: src/http/mcp/tools/system.ts, docs/MCP.md, a test beside the existing system tool tests. Risks: the MCP size ceiling; keep the doc clause under 20 words. Suggested brief: torque.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs