- served_ms measured from request entry, not inside the worker thread:
a client that queued 8 s behind a parse no longer sees served_ms: 12
- image file handle bound in a with block (no fd held to GC)
1. mcp shim: anticipate OSError/RequestException/JSON errors and raise
ToolError with 'Type: message' - the SDK strips ALL text from bare
exceptions ('Error executing tool omniparse' with zero detail)
2. shim HTTP timeout 300s -> 100s, below the harness's 120s: harness
aborts are detailless, ours say why (documented)
3. shim file logging to ~/.cache/omniparse/mcp.log (harnesses discard
stdio stderr): every call's args/status/duration + full tracebacks
4. warm-up 503 sends Retry-After: 10 (429 already did)
5. cache hits no longer replay original timings as live: timings become
{served_from_cache, original_parse}, fresh served_ms on every response
6. token filename canonicalized on omniparse_token (deployed file real,
not a symlink; harness config updated)
7. GET / points at /healthz and /docs instead of bare 404