v0.4.10: McpError preservation and search_legal totalCount enrichment
McpError preservation and search_legal totalCount enrichment
Two targeted bug fixes.
Fixed:
rethrowSanitized— re-throws McpError instances with original code and data intact instead of wrapping into plain Error. Fixes 422 → ValidationError misclassification (was InternalError) and preserves 404/429/403 codes. (#4)openfec_search_legalenrichment — adds totalCount to the enrichment schema and calls ctx.enrich.total(), aligning with all eight other tools. (#6)
259 tests pass; bun run devcheck clean.