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
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.
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:
systemtakeskind: "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 grantedtelemetry:read, like the other kinds.bun scripts/mcp-table.tsrun;bun test test/mcp-size.test.tspasses, no ceiling raised.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 testpasses; touching src/web runsbun scripts/design-lint.ts.