r/modelcontextprotocol • • 8h ago

Memory OS AI v4.1.3 (Alpha): local-only SQLite MCP memory server for multi-agent handoffs (single writer, CAS tasks, preview→apply, now with Linux x86_64 + 1-command verified install)

I just shipped **v4.1.3 (Alpha)** of **[Memory OS AI](https://github.com/RoaminS/Memory-os-ai)** (`io.github.RoaminS/memory-os-ai` on the Official MCP Registry & PyPI).

It is a strictly **local-only, loopback SQLite MCP server** built so multiple AI coding assistants on the same machine — I personally pair **Claude Code, Codex, VS Code, and Antigravity** (and the installer auto-detects/configures Claude Code, Codex, VS Code Copilot on macOS & Linux, Cursor, Gemini CLI, Zed, etc.) — share one verifiable project memory instead of silently contradicting each other.

### Architecture & multi-agent write semantics

- **Single loopback writer, no direct multi-process SQLite races:** every client connects via a thin stdio relay (`memory-os-relay`) to one local loopback HTTP service (`127.0.0.1`, `0600` bearer token) holding an exclusive `writer.lock` over the WAL database.

- **Optimistic CAS on shared tasks & core blocks:** `memory_task_update` and `memory_block_compare_and_set` require an explicit `expected_etag` + `request_id` (no silent last-write-wins). Stale writes return `revision_conflict` with `current_etag` and `current_summary` so the agent has to re-read and reconcile.

- **ADD-only facts with controlled `preview → apply` supersession:** text similarity alone never overwrites a prior decision. Updating a decision uses explicit `replaces: [<id>]` or single-valued identity with a two-step `preview` (computes `expected_revisions` + `preview_digest`) → `apply` (re-checks inside SQLite that targets haven't moved). Old facts stay queryable with `at_time`.

- **Zero hidden LLM, zero cloud, zero telemetry:** your assistant already does the reasoning; the server handles deterministic storage, compact session briefs (`<= 1,500` tokens), and local retrieval (`lexical` BM25 with zero ML stack and zero downloads, or optional local 97M-parameter `semantic` embeddings on macOS arm64 Py 3.11).

### What's new in v4.1.3

- **5 qualified platform cells:** macOS Apple Silicon (Python 3.11 / 3.12 / 3.13) + **Ubuntu 24.04 `arm64` and `x86_64`** (Python 3.11, `systemd --user`).

- **One-command verified install (`lexical` profile, requires `uv >= 0.13.9`):**

```bash

env -u BASH_ENV bash -o pipefail -c "unset SSLKEYLOGFILE; curl -q -fsSL --proto '=https' --proto-redir '=https' https://github.com/RoaminS/Memory-os-ai/releases/download/v4.1.3/install.sh | sh"

```

It fetches `memory_os_bootstrap.py` and `SHA256SUMS` from the pinned `v4.1.3` release into a private temp directory (deleted on exit), verifies SHA-256, prints a full preview (downloads, paths, service, detected clients), asks **one `[y/N]` prompt on `/dev/tty`**, and binds `quickstart --apply` to the exact previewed plan digest (`--expect-plan`). Zero writes to `$HOME`, stores, or client configs before `y` (without a TTY it stops after the preview).

- **Zero-download `lexical` profile:** `cl100k_base` is now bundled in the wheel (MIT notice + load-time self-test), so compact briefs through `memory-os-relay` work completely offline.

- **Foreground `serve`, local Docker, and WSL2 / other Linux / Intel Mac:** `memory-os-admin serve`, minimal local `Dockerfile` (`--container-listen-all` opt-in, bound to `127.0.0.1` on host), `--allow-unqualified-platform` (lexical + `serve` only), and VS Code on Linux (`~/.copilot/mcp-config.json`).

- **Engine hardening:** unified UTC naive-date handling (`audit-naive-times`), canonical base64 cursors, and a unified `open_readonly` WAL reader that never deletes files.

### Honest Alpha limits

- **Native Windows** is still refused (planned for `4.2.0`; usable today via WSL2 or Docker).

- **Local-only:** remote/cloud agents are not qualified (planned for `4.3.0`).

- **No claimed productivity gain:** this is an engineering alpha with explicit failure modes and published limits in the README / release notes.

- Reversible by design: `quickstart --undo <stamp> --with-service` and `uninstall` never delete your memory store.

Links:

- GitHub & README: https://github.com/RoaminS/Memory-os-ai

- Release `v4.1.3` (wheel, sdist, `install.sh`, bootstrap, P9 manifest, `SHA256SUMS`): https://github.com/RoaminS/Memory-os-ai/releases/tag/v4.1.3

- Feedback / bug reports: https://github.com/RoaminS/Memory-os-ai/issues/1

Happy to answer any technical questions on the write model, relay design, or packaging/security tradeoffs.

2 Upvotes

1 comment sorted by

1

u/kantorcodes1 5h ago

Keeping old facts readable after a newer decision replaces them is the part that would sell me. Shared memory gets messy fast when the earlier call disappears.

I help run awesome-ai-plugins at HOL. It is a catalog people open when they are picking an MCP memory server, and Memory OS AI would get its own entry there, in front of the Claude Code and Codex users it already supports.

Would you like it listed?