Repository navigation
v1.1.0 - MCP performance pass
Performance pass over the MCP server. Four focused changes, each measured before and after on a disposable local Postgres 18 (numbers below are local microbenchmarks, not production latency):
- Scoped requirement-source validation (#179):
save_scopevalidated requirement sources by loading every message of the project. It now only loads the referenced ones. 1000 messages x 2 KB, 10 referenced sources: 7.88 ms / 2003 KB -> 0.54 ms / 20 KB per save. Validation semantics unchanged. - Brief projection in
list_projects(#180): the listing transferred every full brief (multi-MB) and zod-validated each one only to read the summary and count blocking questions. It now uses a narrow select plus one projection query per page. 100 projects with ~45 KB briefs: 47.7 ms / 4563 KB -> 6.8 ms / 49 KB per page. Pagination behavior unchanged. - Principal user reuse on MCP auth (#181): every authenticated MCP call re-fetched the user row after bearer auth. The verified user now travels in the auth principal. API-key calls go from 2 to 1 queries, OAuth access-token calls from 3 to 2 (0.774 ms -> 0.437 ms per auth sequence locally; on a hosted database this removes a full network round trip per call).
- Parallel document artifacts and downloads (#182):
generatewrote the md/pdf/docx artifacts sequentially, and delivery downloads loaded files one by one; both are now parallel. 0.600 ms -> 0.342 ms for the local write phase; the win grows with storage latency.
Full methodology and per-change details are in each PR body.