Skip to content

v0.16.5

Choose a tag to compare

@github-actions github-actions released this 16 Nov 09:51
· 22 commits to main since this release
06fd47a

Fixes a crash: _jq filters now run in a sandboxed worker process

A single _jq filter could terminate the server process. halt_error exited it outright, and recursion or deep nesting overflowed a stack (production pods were restarting about 15 times a day). Filters now run in a short-lived child process under memory, CPU and time limits, so a hostile or broken filter fails that one call and nothing else.

_jq changes

  • env, debug, stderr, halt and halt_error are no longer available. Using one fails at compile time with an explicit "disabled in _jq" message instead of "undefined filter".
  • Expressions are capped at 4096 characters.
  • Output over the response size limit is trimmed, as any tool result is, rather than returned whole. The truncation note tells you to append a slice to your filter. Output that cannot be trimmed is refused.
  • A filter that spins is killed after 2 seconds. One filter runs at a time; others get jq_sandbox_busy.

Error handling

  • New codes: jq_sandbox_busy and jq_sandbox_unavailable, both recoverable: backoff.
  • jq_filter_error on a read-only tool is now recoverable: fix_params (it was none), so a correctable filter error no longer reads as terminal.
  • When a filter fails on a tool that is not read-only, the tool's unfiltered result is returned with a jq_warning instead of an error. The hint never claims the call executed (two-step tools may have returned only a preview) and never suggests calling it again.

Also

  • MCP request bodies are capped at 1 MiB, with a 10-second read deadline and a limit on concurrent reads. Oversized bodies get 413.

  • chore: release v0.16.5 (#192)
  • fix(jq): run _jq filters in a sandboxed worker process (#191)