Skip to content

v0.4.10: McpError preservation and search_legal totalCount enrichment

Choose a tag to compare

@cyanheads cyanheads released this 04 Jun 08:20
v0.4.10
94c7b85

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_legal enrichment — 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.