Outcome-based persistent memory MCP server for AI coding assistants with scoring and self-healing.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Roampal Core.
Outcome-Based Persistent Memory MCP Server
Two commands. Your AI coding assistant gets outcome-based memory.
Works with Claude Code and OpenCode.
85.8% on the corrected LoCoMo benchmark (non-adversarial, end-to-end answer accuracy) โ validated on 1,986 questions across 10 conversations with dual grading. All figures in this section are sourced from the paper and roampal-labs (see citations at the bottom of this section).
| Result | Score |
|---|---|
| Conversational learning vs raw ingestion | +23 points (76.6% vs 53.0%, p<0.0001) |
| Architecture vs model effect | Architecture ~10x larger contributor |
| Poison resilience (1,135 adversarial memories) | -2.6 to -4.2 points only |
| TagCascade retrieval (tags-first + CE rerank) | +1.9 Hit@1 vs pure CE (p<0.0001) |
Benchmark pipeline runs on a single GPU with no cloud dependencies. Roampal itself runs on CPU โ no GPU required. Full methodology, data, and evaluation scripts: roampal-labs
Paper: "Beyond Ingestion: What Conversational Memory Learning Reveals on a Corrected LoCoMo Benchmark" (Logan Teague, April 2026)
Auto-detects installed tools. Restart your editor and start chatting.
Target a specific tool:
roampal init --claude-codeorroampal init --opencode
The core loop is identical โ both platforms inject context, capture exchanges, and score outcomes. The delivery mechanism differs:
| Claude Code | OpenCode | |
|---|---|---|
| Context injection | Hooks (stdout) | Plugin (system prompt) |
| Exchange capture | Stop hook | Plugin session.idle event |
| Scoring | Main LLM via score_memories tool | Independent sidecar (your chosen model, disabled by default until configured) |
| Self-healing | Hooks auto-restart server on failure | Plugin auto-restarts server on failure |
Claude Code prompts the main LLM to score each exchange via the score_memories tool. OpenCode never self-scores โ an independent sidecar (a separate API call) reviews each exchange as a third party, removing self-assessment bias. The score_memories tool is not registered on OpenCode. Scoring is disabled by default until you explicitly configure it via roampal sidecar setup. During setup, Roampal detects local models (Ollama, LM Studio, etc.) and lets you choose a scoring model. Zen free models are available as an explicit opt-in choice for users without a local model or API key โ they route through OpenCode's proxy which may log data. A cheap or local model works great โ scoring doesn't need a powerful model.
v0.5.9: Memory footprint fix + embedder/reranker upgrade + crash observability โ triggered by a
MemoryErrorcrash traced to ONNX Runtime's CPU memory arena never releasing per-shape scratch buffers, compounded by FP16 model files up-converting to FP32 at load. Disables the arena and mem-pattern cache on both models, switches the embedder to its own measured INT8 export (same mpnet model โ the planned e5-base upgrade was held back to v0.6.0 after an accuracy gate caught a near-duplicate-guard regression) and the cross-encoder to its own INT8 export, and shares one cross-encoder session across all profiles instead of one per profile. Measured process footprint drops from ~2,355MB to ~484MB in isolation (~5x), and search gets faster on both the embed and rerank paths rather than trading memory for latency. A background, per-collection re-embed migrates existing vectors to the new embedder automatically on first start โ never blocking the MCP client, never mixing model families within a collection. Also adds file-based logging, MemoryError/ExceptionGroup handling, an RSS heartbeat, and a/api/statusendpoint so the next incident like this one leaves a trace, and degraded states (embedder down, reranker down, migration in progress) are surfaced to the user instead of silently returning an empty result.v0.5.8: Crash-resilience release โ enables SQLite WAL + FULL durability on the ChromaDB catalog so hard terminations (Windows port conflicts, external process kills, power loss) no longer corrupt or empty the database. Rewrites
SessionManager.mark_scored()to perform an atomic temp-file replace, guaranteeing the JSONL transcript survives a crash mid-write. Also ships 16 new automated tests covering both fixes, fixes pre-existing test debt that left the full suite red on Windows, and adds dev tooling (pytest-timeout,pytest-forked,build,twine). No data migration required; WAL is applied on the next server start.v0.5.7: Startup garbage collection for the MCP hook's
_completion_state.json. The file accumulated one entry perconversation_idever seen with no cleanup, driving I/O amplification on every write and leaving stuckscored_this_turn=Trueflags that could poison the cross-session scoring fallback. New_cleanup_completion_statepass drops entries older than 30 days or with no matching transcript, enforces a 500-entry hard ceiling, and writes atomically. JSONL transcript TTL bumped 7 โ 30 days to stay in lockstep with the state-file TTL. Ships paired with Roampal Desktop v0.3.3.v0.5.6: Hardening release โ closes remaining coverage gaps from the v0.5.5.x verification audit. Phantom sweep after archived cleanup, auto-cleanup under capacity pressure, dedup observability, hardened delete permissions, archive-then-add cycle tests, sidecar prompt alignment with benchmark, async scoring queue (per-session deferred retry), MCP tool definition quality rewrite (TDQS), OpenCode Go auto-detect in sidecar setup wizard, and user name extraction fix.
v0.5.5.2: Hotfix โ Windows plugin install now verifies copy succeeded (post-copy size check + manual read/write fallback for OneDrive/antivirus interference). Also installs to
%APPDATA%\opencode\pluginsas fallback since some Electron apps resolve config paths differently on Windows. Fixes remaining cases of issue #11 whereroampal init --forcereported success but the plugin was empty or in the wrong directory.v0.5.5.1: Hotfix โ OpenCode Desktop now correctly switches profiles when you switch projects in the UI (issue #10). Plugin reads the active session's
directoryviaclient.session.get()instead of caching the profile at module load, so a singleton plugin across a multi-project workspace still hits the right profile per message. Also:roampal init --forceactually overwrites the OpenCode plugin file now (issue #11), with clearer errors when Desktop holds a file lock.v0.5.5: Soft-delete for memory_bank โ ChromaDB hard delete doesn't actually remove vectors from HNSW, causing phantom dedup matches that block new memories after GUI deletion. Replaced with
status=archivedmetadata update plus status filter on all query/dedup paths. Also: scoring mutex โ async queue (eliminates dropped requests), sidecar summary contamination fix (delimiter fencing).v0.5.4: Profile binding is now per-request, not per-process. Every client (MCP server, OpenCode plugin, Python hooks for Claude Code / Cursor) sends an
X-Roampal-Profileheader so a single FastAPI server can cleanly serve multiple profiles simultaneously. Fixes issue #7 where OpenCode Desktop's per-projectROAMPAL_PROFILEinopencode.jsonwas ignored because the singleton FastAPI bound the profile once at startup.v0.5.3: Sidecar scoring now requires explicit configuration (no automatic fallback to Zen or localhost). Small local models (qwen2.5:3b, etc.) that return bare JSON arrays instead of OpenAI-shaped responses are handled transparently via server-side shape tolerance.
When you type a message, Roampal automatically injects relevant context before your AI sees it:
You type:
Your AI sees:
No manual calls. No workflow changes. It just works.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/roampal-ai-roampal-core)<a href="https://allmcps.com/mcp/roampal-ai-roampal-core"><img src="https://allmcps.com/api/badge/roampal-ai-roampal-core?style=directory" alt="Roampal Core on AllMCPs" /></a>