Repository navigation
v0.16.5
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,haltandhalt_errorare 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_busyandjq_sandbox_unavailable, bothrecoverable: backoff. jq_filter_erroron a read-only tool is nowrecoverable: fix_params(it wasnone), 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_warninginstead 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.