Skip to content

v0.1.17: Animal/veterinary and tobacco endpoints; typed errors[] with recovery hints; 401/403 service mapping

Choose a tag to compare

@cyanheads cyanheads released this 31 May 02:57
v0.1.17
812ed27

Animal/veterinary and tobacco endpoints; typed errors[] with recovery hints; 401/403 service mapping

Three enhancements shipped together — new domain coverage, better error contracts, and cleaner auth-failure handling.

Added:

  • openfda_search_animal_events tool — animalandveterinary/event endpoint, 1.3M+ records (#2)
  • openfda_search_tobacco_reports tool — tobacco/problem endpoint (#2)
  • tobacco/problem added to openfda_count endpoint list (#2)
  • Typed errors[] contracts on all 8 tools: rate_limited, upstream_error, query_error, pagination_limit_reached — recovery hints surfaced in content[] via ctx.recoveryFor() (#5)

Fixed:

  • HTTP 401 → McpError(Unauthorized), non-retryable, data.reason: 'unauthorized' (#6)
  • HTTP 403 → McpError(Forbidden), non-retryable, data.reason: 'forbidden' (#6)

269 tests pass; bun run devcheck clean.