Commit Graph
2 Commits
Author SHA1 Message Date
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
plean 2a4b1101e6 omniparse-mcp: standalone OmniParser V2 parsing service + MCP shim
Self-contained: vendored util/ (CC BY 4.0, fixes noted in NOTICE), portable
setup.sh (venv + weights + Pascal lane), start.sh with real-parse readiness
gate, FastAPI service (bearer, serial GPU queue, LRU cache, OOM->503), MCP
stdio shim (MCPServer 2.x, token strip), hardware-honest README.
2026-11-18 02:29:08 +00:00