Conversation
Implement a complete MCP-based shared memory system so the OpenClaw Gateway and all nodes can persist and retrieve prior knowledge (chats, channels, tasks, decisions, runbooks, artifacts) without repeating work. Core components: - services/mcp-memory: FastAPI MCP server with 7 tool endpoints (memory.write, memory.search, memory.get, memory.link, memory.summarize_scope, memory.attach_blob, memory.fetch_blob) - PostgreSQL + pgvector for durable structured memory + vector index - Redis for hot working-set cache (last 50 IDs, TTL 6h) and search result caching (TTL 10min) - bellie-blobnlie blob store integration for large attachments - Hybrid retrieval: vector similarity (0.75) + trigram keyword (0.25) with metadata filters and strict tenant+scope isolation - Content-hash based idempotency and dedupe - Gateway middleware hooks for automatic memory writes on message received and task/tool completion - Node preflight context bootstrap for injecting prior knowledge - Scheduled jobs for scope summarization, memory promotion, and chat_turn pruning - SQL migration with pgvector/pg_trgm extensions, 6 tables, and optimized indexes (IVFFlat, GIN trigram, GIN tags) Integration updates: - Root docker-compose.yml: mcp-memory as opt-in profile (--profile memory) - Makefile: memory-up, memory-down, memory-logs, memory-health, memory-test - GitHub Actions: build+push mcp-memory image, run mcp-memory tests in CI - devcontainer.json: forward MCP ports, add docker-in-docker feature https://claude.ai/code/session_015uJfi7Exmb3Ev4xwiAZY9D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement a complete MCP-based shared memory system so the OpenClaw
Gateway and all nodes can persist and retrieve prior knowledge (chats,
channels, tasks, decisions, runbooks, artifacts) without repeating work.
Core components:
(memory.write, memory.search, memory.get, memory.link,
memory.summarize_scope, memory.attach_blob, memory.fetch_blob)
result caching (TTL 10min)
with metadata filters and strict tenant+scope isolation
received and task/tool completion
chat_turn pruning
optimized indexes (IVFFlat, GIN trigram, GIN tags)
Integration updates:
https://claude.ai/code/session_015uJfi7Exmb3Ev4xwiAZY9D