You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v0.2.2: MCP Production Hardening & Oversized Response Stream Safety
Configurable Hard Ceiling: Configured default 60,000-character ceiling (~15,000 tokens) on all tool responses via formatToolResponse. Added support for DOCORBIT_MAX_TOOL_OUTPUT_CHARS with safe bounds (clamped between 500 and 120,000 chars).
JSON Payload Safety: Oversized JSON responses automatically drop bulky data fields, preserve scalar metadata (query, task, count, etc.), set truncated: true, and clamp inner markdown to guarantee valid JSON under the ceiling.
Stream & Transport Resilience: Guarded StdioServerTransport.send() with synchronous try/catch, asynchronous write callbacks, and stream error listeners on output, input, and readline to prevent process crashes.
Ingestion & Normalizer Hardening: Stopped embedding raw multi-megabyte JSON specs into documentation pages during ingestion; replaced with clean endpoint summaries.
Self-Healing Database Migration: Added automatic startup migration in DocOrbitDb.migrate() to purge legacy bloated OpenAPI dump records.
Version Alignment: Unified canonical version 0.2.2 across CLI, McpServer, HTTP transport, and package metadata.
🧪 Comprehensive Regression Suite
159 / 159 tests passing (100%).
Added end-to-end stdio lifecycle tests verifying 1 MB, 10 MB, and 50 MB payloads, process survival, and subsequent tool call success.