WrongMemory MCP
Provides tools for working with WrongStack SAGE v5 knowledge stores: searching and traversing memories, reading exact IDs and cursors, and managing the memory lifecycle with remember/update/delete, feedback, candidates, hygiene, backup, and adoption of existing SAGE stores.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WrongMemory
A per-user local memory service that keeps WrongStack's SAGE knowledge (structured memories, anchors, review queue, provenance) usable outside WrongStack. One Rust daemon serves many projects. WrongStack connects through a native adapter; other coding tools connect through MCP.
Status: preview, not certified. The daemon, policy, native SAGE-profile storage, MCP bridge and WrongStack adapter are implemented and tested against an oracle built from the real SAGE code. They have run in real environments: WrongStack on a live store, Claude Code, Codex, Antigravity and MCP Inspector. Releases are unsigned; every asset has a SHA-256 checksum and a SLSA build provenance attestation. The 1.0 evidence matrix lists what passed and what is still open. docs/status.md lists every task with its evidence and what is still NOT RUN. The full program is in docs/plan/.
Platforms
Platform | CLI + daemon + MCP bridge | Native desktop (preview) |
Windows x64 | yes | yes (since 0.2.1) |
Linux x64, glibc 2.34 or newer (no musl) | yes | yes (from 0.3.0) |
macOS arm64 (Apple silicon) | yes | yes (from 0.3.0; tested on CI runners only) |
Latest release: https://github.com/WrongStack/wrongmemory/releases/latest. Nothing else is needed at runtime: no Bun, Node or source checkout. On Windows on ARM the installer uses the x64 build under emulation, which has not been tested. The macOS build has run on hosted CI runners only; Linux also in WSL Ubuntu. docs/status.md lists what is NOT RUN per platform.
Related MCP server: machine-mcp
Install
# Windows: native desktop + CLI + daemon (PowerShell 5.1 or 7)
irm https://raw.githubusercontent.com/WrongStack/wrongmemory/main/install-desktop.ps1 | iex
# Windows: CLI + daemon only
irm https://raw.githubusercontent.com/WrongStack/wrongmemory/main/install.ps1 | iex# Linux x64, macOS arm64
curl -fsSL https://raw.githubusercontent.com/WrongStack/wrongmemory/main/install.sh | sh
# Linux x64, macOS arm64: native desktop + CLI + daemon (needs a release that ships the bundle)
curl -fsSL https://raw.githubusercontent.com/WrongStack/wrongmemory/main/install.sh | WRONGMEMORY_DESKTOP=1 shWhat the installers do:
Download
wrongmemoryandwrongmemoryd(with the desktop: the desktop ZIP on Windows, the desktop tar.gz on Linux and macOS) from the release. Each file must match its single entry inSHA256SUMS, or nothing is installed. The desktop archive's extraction paths and manifest hashes are checked as well; links and paths outside the archive are refused.Run
wrongmemory install, which copies the binaries into a per-user directory and writesinstall.json. No administrator rights are needed.Windows:
%LOCALAPPDATA%\WrongMemory\bin.Linux, macOS:
$XDG_DATA_HOME/wrongmemory/bin, else~/.local/share/wrongmemory/bin.
Put that directory on your
PATH, so a new terminal findswrongmemory.Windows: appended to the user
Path. Existing%VAR%entries and the value type are kept.Linux, macOS: a marked block in
~/.profileand in your shell's startup file (~/.bashrc,~/.zshrc, or~/.config/fish/conf.d/wrongmemory.fish). The script prints theexportline for the terminal you ran it in.
A daemon that is running is drained, stopped and started again from the new binaries. One that is not running is not started. No desktop window opens and no store is adopted.
Read install.ps1, install-desktop.ps1 or install.sh first if you prefer.
Options
Set these in the environment before running an installer:
Variable | Effect |
| Install that release instead of the latest. The desktop bundle exists from 0.2.1 on Windows and from 0.3.0 on Linux and macOS. |
| Install somewhere else. |
| Start the daemon at sign-in (Windows |
| Also verify the GitHub build provenance of each download. Needs a signed-in |
| Leave |
| Download from a mirror serving the release assets. |
$env:WRONGMEMORY_VERSION = '0.2.1'; irm https://raw.githubusercontent.com/WrongStack/wrongmemory/main/install.ps1 | iexcurl -fsSL https://raw.githubusercontent.com/WrongStack/wrongmemory/main/install.sh | WRONGMEMORY_VERSION=0.2.1 shManual or offline install
Download the archive for your platform from the release. Check it against SHA256SUMS and its provenance attestation:
gh attestation verify <file> --repo WrongStack/wrongmemory \
--signer-workflow WrongStack/wrongmemory/.github/workflows/release.yml \
--source-ref refs/tags/v0.2.1Then unpack it and install from its bin directory:
# Windows: wrongmemory-<version>-windows-x64.zip
bin\wrongmemory.exe install
# Windows desktop: wrongmemory-desktop-<version>-windows-x64.zip
bin\wrongmemory.exe install --desktop
# Linux, macOS: wrongmemory-<version>-<platform>.tar.gz
bin/wrongmemory install
# Linux, macOS desktop: wrongmemory-desktop-<version>-<linux-x64|macos-arm64>.tar.gz
bin/wrongmemory install --desktopinstall takes --prefix <dir> and --no-modify-path. With --desktop it checks the bundle's version and every manifest hash before it stops a daemon or replaces a file.
Update
Run the same installer command again; nothing is added to PATH twice. The previous binaries are kept as *.old (*.exe.old on Windows). An open desktop window keeps running its old code until you close and reopen it. MCP bridges reconnect to the new daemon by themselves. Rollback and data handling: docs/operations.md.
Uninstall
wrongmemory uninstallThis stops the daemon and removes the binaries, the desktop and its license material, the Linux application-menu entry or macOS WrongMemory.app, the autostart entry and the PATH entries. Memory stores, grants and logs under ~/.wrongmemory are kept. wrongmemory uninstall --remove-data --yes also deletes that data root, including the stores WrongMemory manages; adopted WrongStack stores are never touched.
Quick start
wrongmemory doctor # check the install and the daemon
wrongmemory project add ~/src/my-project --managed # starts the daemon on demand
wrongmemory project list
wrongmemory remember <project-id> "Use bun run for scripts" --kind convention --file package.json
wrongmemory search <project-id> "bun scripts"
wrongmemory ui # read-only dashboard on 127.0.0.1Adopting a store.
project add <root>without--managedadopts an existing WrongStack store, read-only by default. Write ownership needs--write. The store stays read-only while a legacy SAGE daemon may be running. From 0.1.11 the daemon backs the store up to~/.wrongmemory/backups/before it takes write ownership.Data root.
~/.wrongmemoryby default;WRONGMEMORY_HOMEor--data-rootchanges it.
Connect a coding tool
# Plan the entry first, then write it. Claude Code, Codex, Cursor and Antigravity are supported.
wrongmemory connect claude-code --project <project-id> --create-grant --dry-run
wrongmemory connect claude-code --project <project-id> --create-grant
# Any other MCP client: create a grant and print an entry to paste
wrongmemory grants create --label my-tool --project <project-id>
wrongmemory connect print --project <project-id> --grant <grant-id> --format toml # or json
wrongmemory client doctor # check the setup
wrongmemory disconnect claude-code --project <project-id>connect <client>edits the client's configuration only when you ask it to, and only its own marked entry.disconnectremoves that entry and revokes the grant.The grant secret stays under
~/.wrongmemory/grants/. Client configurations carry only the project ID and grant ID.New grants use the
read-proposeprofile: the tool can read and propose candidates, and you review them. Certification is per client and version; see docs/status.md.
Use it instead of SAGE in WrongStack
wstack sage service install # download, verify and install the latest release
wstack sage service use wrongmemory --yes # switch the profile; back up and hand over this project's store
wstack sage service status
wstack sage service use local --yes # hand the store back to WrongStack's own SAGEWrongStack 1.4.0 installs the Windows build only. WrongStack 1.5.6 includes #434's Linux and macOS installer and integration changes (verified 2026-11-11). Lookup order and worktree behavior: docs/operations.md. Current certification gaps, and the difference between the native integration and external MCP, are in the readiness review.
Desktop (preview: Windows, Linux, macOS)
wrongmemory-desktop is an optional native GPUI workbench on the same authenticated service. Every machine runs one per-user daemon; the desktop, WrongStack and MCP clients are all clients of it. The desktop owns no database, and closing it leaves the daemon and other clients running. It has a paged library, a full-text evidence inspector, revision-checked edits, review decisions, a relations view, client grants, health/jobs and a command palette (Ctrl+K, Cmd+K on macOS). Installation never opens it. install --desktop adds a launcher with the app icon: an application-menu entry on Linux, ~/Applications/WrongMemory.app on macOS and a Start Menu shortcut on Windows.
One code base builds for all three platforms. Release bundles exist for Windows x64 from 0.2.1 and for Linux x64 and macOS arm64 from 0.3.0. Linux has been built, tested against real daemons, packaged, installed and launched under WSLg (X11) and Xvfb; macOS builds, tests, launches and renders on hosted CI runners only (screenshots, no hands-on use). Accessibility, IME, high-DPI, GPU fallback, sleep/resume, native Wayland rendering and sustained frame performance are NOT RUN. Details: apps/desktop/README.md.
What works
Daemon.
wrongmemorydruns one daemon per user and data root.It listens on a named pipe (Windows) or a Unix socket (Linux, macOS) that only the owner can open.
Before a client sends any credential, the daemon must prove it holds the host token (an HMAC challenge), which defeats pipe squatting.
Clients authenticate with frame limits enforced, and there is one serialized writer lane per project.
Durable maintenance jobs and an event feed are filtered by visibility.
SAGE v5
sage.dbcompatibility.A read-only inspector admits or refuses a store.
Managed stores get DDL identical to SAGE's.
Existing WrongStack stores can be adopted. A linked Git worktree resolves to its main checkout's store.
Retrieval parity. These match the SAGE oracle in order, not just in result set:
lexical search, including AND-then-OR matching, the NFKC
LIKEfallback and the hybrid rerank;path retrieval with graph expansion;
exact-ID reads;
list cursors;
related and graph traversal with hub damping.
Session visibility is applied before
LIMIT, counts and graph expansion.Lifecycle parity.
rememberwith exact and near-duplicate merge, supersedes and contradicts.updatepatches the raw JSON with a revision guard.Feedback and usage counters.
Tombstone delete with recovery and backfill.
Hygiene with protection for critical memories.
Transactional candidate accept, reject and resolve.
Every mutation carries a durable idempotency receipt, so a retry after a crash returns the original result.
Policy.
Grants use one of the profiles
read-only,read-propose,writerorcurator, with a project allowlist.Revocation is checked on every request.
Grant clients always get a daemon-issued session.
Client-supplied project, session or source fields never grant authority.
MCP.
wrongmemory mcpis a stdio bridge built on the officialrmcpSDK.Tools are listed according to the grant's profile.
The bridge starts the daemon by itself, so WrongStack does not need to run.
Client setup.
connect,disconnectandclient doctor(see Connect a coding tool).Operations.
backupuses the SQLite online backup API. Also:migrate inspect,diagnostics export, per-userinstall/uninstall,autostartand the read-onlyuidashboard. See docs/operations.md and docs/runbooks.md.Desktop. The cross-platform preview above.
TypeScript client.
packages/client-ts(@wrongmemory/client) mirrors the Rust contracts; a parity check runs in CI.
Benchmark
cargo build --release -p wrongmemoryd -p wrongmemory-bench
target\release\wrongmemory-bench --corpus s # or m (25,000 memories)The benchmark starts a real daemon on a temporary data root and loads a deterministic synthetic corpus. It reports:
p50/p95/p99 latency, measured through IPC, for search, path and propose;
daemon RSS;
synthetic recall@5;
the session leak count, which must be 0.
Results are in benchmarks/results/.
Layout
Path | Contents |
| Wire envelopes, typed errors, policy profiles, SAGE record DTOs |
| Inspector, SAGE DDL, retrieval, mutations, candidates, recovery, hygiene, backup, owner guard |
|
|
| NDJSON framing, private named pipe (Windows) or Unix socket, discovery, server proof, client |
| Daemon: auth, authorization, dispatch, scheduler, events, fault hooks (debug builds only) |
|
|
| Latency, resource and synthetic recall benchmark |
| TypeScript client used by the WrongStack adapter |
| Read-only browser dashboard served by |
| Optional native GPUI desktop: separate Rust 1.99.1 workspace and lockfile (the core stays on Rust 1.93.0) |
| Bun scripts: WrongStack baseline, SAGE oracle fixtures, inventories, release and desktop packaging |
| Generated storage profile, record shape and known-answer tests, inventories |
| Read and mutation oracle stores built by the real SAGE code |
| Release installers, tested against the published release in CI |
Development
cargo build --release # target\release\wrongmemory(.exe) and wrongmemoryd(.exe)
bun run desktop:run # build and run the desktop from source
bun run desktop:package # desktop bundle for this platform (ZIP on Windows, tar.gz on Linux/macOS)Checks:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
bun run test:client # TS client tests + contract parity
bun run typecheck
bun run desktop:check # desktop fmt, Clippy and tests (Rust 1.99.1)
bun run desktop:package:testContributor rules, including the store-safety rules, are in AGENTS.md.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
StremAI MCP: shared memory for AI coding agents. Connected agents can recall. OAuth + local stdio.
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a stdio MCP bridge for coding agents to query and record engineering knowledge locally, preserving debugging history, failed attempts, and verified solutions.MIT
- AlicenseAqualityDmaintenanceEnables an AI agent to run local tools on the user's own machine via stdio, including command execution, workspace file read/write, and system status checks.52MIT
- AlicenseBqualityBmaintenanceEnables AI clients to connect locally over stdio, discover and read schemas for native page tools, and execute user-authorized operations supplied by websites and independent user scripts.13MIT
- AlicenseNot gradedqualityBmaintenanceEnables compatible agents to call registered local tools and read resources through one stdio server, including harness preparation, knowledge search and document management, memory retention/recall, correction proposals, advisory decisions, tool/skill discovery, and log/source inspection.2Apache 2.0