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

MCP system {kind:"routes"} answers the slowest routes against their budgets, as the performance watcher sees them #11476

shipped production is serving it opened this has it
opened this

Intent: docs/features/performance-watcher.md lists "live route stats in the terminal and MCP" as not yet; findings reach them only as issues.

Done:

  • [x] system takes kind: "routes" and answers up to 10 { route, p95Ms, budgetMs, n, slowestPhase }, worst over-budget first, from the record in src/perf (no paths, ids or queries); admin or an agent granted telemetry:read, like the other kinds.
  • [x] The doc line for the tool names the kind in a few words; bun scripts/mcp-table.ts run; bun test test/mcp-size.test.ts passes, no ceiling raised.
  • [x] Test: seed samples for two routes, one over budget; it is listed first; a non-admin is refused.
  • [x] docs/features/performance-watcher.md's Not-yet line drops MCP.

Files: src/http/mcp/tools/system.ts, src/perf/record.ts (a read helper only), test/mcp-system-routes.test.ts, docs/MCP.md Risks: descriptions are costly in tools/list: add words to an existing sentence, not a new one Brief: an MCP builder. A person assigns. Every behaviour added has a test that fails without it; bun test passes; touching src/web runs bun scripts/design-lint.ts.

commented

Reviewed pull #11490 at its head: ticked system takes kind: "routes" and answers up to 10 { route, p95Ms, budgetMs, n, slowestPhase }, worst over-budget first, from the record in src/perf (no paths, ids or queries); admin or an agent granted telemetry:read, like the other kinds.; The doc line for the tool names the kind in a few words; bun scripts/mcp-table.ts run; bun test test/mcp-size.test.ts passes, no ceiling raised.; Test: seed samples for two routes, one over budget; it is listed first; a non-admin is refused.; docs/features/performance-watcher.md's Not-yet line drops MCP..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs