Files
omniparse-mcp/omni_api
plean 46ae7046ea Surface tool failures; timeout discipline; call logging; cache-hit honesty
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
2026-11-18 03:00:17 +00:00
..