Status: Accepted (2026-11-27, revised for ADR 0022)
apps/mcp, official @modelcontextprotocol/sdk low-level Server with the JSON Schemas in shared/src/mcp.ts. Transports: stdio (local agents; LINORA_URL + LINORA_TOKEN env) and Streamable HTTP (hosted; Authorization: Bearer <PAT> per request).POST .../ops), through the same validated pipeline as the browser. The MCP keeps no document replica, so it stays light and horizontally scalable.kind: 'agent' presence. Humans see the agent’s cursor move to what it edits and its selection highlight. Edit tools wait for the ACK and return server verdicts with fix hints, plus seq. Follow-up reads pass minSeq (read-your-writes).fields: ['key'], current geometry for transforms, full subtrees before deletes) and uses packages/doc pure helpers (fractional keys, JSON <-> op conversion, inverse building) for create positions and its own undo stack.fields, depth- and budget-limited text outlines that summarise collapsed subtrees by type, paging cursors, get_changes(sinceSeq) instead of re-reading, returnIds: 'refs' for big creates, render with a small default size.A replica per agent session (fast local reads, but tens of MB per big page per session and slow opens); MCP inside the server (couples deployables, violates API-only); headless Chrome rendering (heavy).