Skip to content

v0.1.8: Bounded batch concurrency and validated env config

Choose a tag to compare

@cyanheads cyanheads released this 30 Jun 20:42
v0.1.8
e6581d1

Bounded batch concurrency and validated env config

osv_query_batch now drains through a bounded worker pool instead of fanning every package out at once; server env config is validated at startup.

Added:

  • OSV_BATCH_CONCURRENCY env var (positive integer, default 10) caps concurrent OSV.dev requests in osv_query_batch (#6)
  • Startup validation of OSV_REQUEST_TIMEOUT_MS and OSV_BATCH_CONCURRENCY via src/config/server-config.ts; invalid, zero, or negative values fail startup with a ConfigurationError naming the variable (#7)

Changed:

  • osv_query_batch runs per-package queries through a bounded worker pool (default 10 in flight) instead of up to 1000 concurrent requests; positional results and per-package partial-success unchanged (#6)

Dependencies:

  • @cyanheads/mcp-ts-core ^0.10.9 → ^0.10.10 (clears transitive js-yaml GHSA-h67p-54hq-rp68; bun audit clean)

55 tests pass; bun run devcheck clean.