AI & bots
An AI edits a document as a separate participant. Browser editors and AI participants connect to the same document server. Each participant has its own actor ID and undo history. The server checks the document revision before it accepts an MCP edit.
Use server connection for a local stdio bridge or private hosted MCP for an authenticated Streamable HTTP connection. Use bounded reads to select part of the model. The local walkthrough tests the editing flow during development.
Connection model
MCP host ── stdio ── local bridge ───────────┐
│ HTTP + SSE
MCP host ── authenticated HTTP ── hosted ───┤
▼
Document server
▲
Browser editors ─────── HTTP + SSE ────────┘Both MCP modes use a local document replica and a private actor journal. read_document reads that replica; remote changes can still be in transit. edit_document includes the revision from a read. The document server accepts the edit only if that revision is still current.
The hosted service is a private, single-host implementation. It uses configured static bearer grants and upstream credentials. It does not provide OAuth, TLS termination, or multiple-host coordination.
Choose a guide
| Task | Guide |
|---|---|
| Launch a stdio participant against an application server | Server connection |
| Configure an authenticated remote MCP URL | Private hosted MCP |
| Read canonical model children with size limits | Bounded reads |
| Use edit, presence, schema and recovery tools | MCP tools and recovery |
| Run a bounded mission | Run a document bot |
| Show bot identity and activity | Bot identity and activity |
| Test AI and browser collaboration locally | Local walkthrough |
Editing contract
- Read the document and its revision.
- Choose an edit from that model and submit the returned revision as its base.
- If the base is stale, read again and decide on a new edit.
- If the result is unconfirmed, resolve the exact request with
retry_edit. After a restart, inspectrecovery_statuswith the original journal.
A confirmed result proves that the server accepted the edit and its echo reached the participant. It does not prove that the edit met the user's request. Review the result. A bot's completed status reports execution; it does not replace deterministic checks or human review.
Pending document proposals provides an opt-in HTTP and CLI preview, storage, inspection, and rejection path. It does not apply a document edit or add an approval UI.