Skip to content

Add memory MCP server (stdio) for MEMORY.md read/write - #70

Merged
IceRhymers merged 1 commit into
masterfrom
issue-67-memory-mcp
Mar 31, 2026
Merged

Add memory MCP server (stdio) for MEMORY.md read/write#70
IceRhymers merged 1 commit into
masterfrom
issue-67-memory-mcp

Conversation

@IceRhymers

Copy link
Copy Markdown
Owner

Summary

  • Adds claw/core/memory_mcp.py — a stdio MCP server (FastMCP) exposing read_memory and write_memory tools that operate on MEMORY.md via UC Volume (databricks-sdk ws.files.download/upload)
  • Adds claw-memory McpStdioServerConfig entry to build_mcp_servers() in mcp_mapper.py, so every agent session gets memory tools automatically
  • Removes the broken manual read_memory/write_memory calls from slack_poller.py — the old pattern wrote back stale memory on every response instead of letting the agent update it
  • OpenSpec at openspec/changes/memory-mcp/

Test plan

  • RED: 11 new/updated tests fail before implementation
  • GREEN: All 274 tests pass after implementation
  • Manual: Deploy and verify agent can read/write memory via MCP tools in a Slack thread

Closes #67

Replace the broken manual read_memory/write_memory pattern in
slack_poller with a stdio MCP server that exposes read_memory and
write_memory as tools the agent can call directly. The old pattern
wrote back stale memory content on every response — now Claude
manages its own memory via MCP tools.

- Add claw/core/memory_mcp.py (FastMCP stdio server with two tools)
- Add "claw-memory" McpStdioServerConfig entry in mcp_mapper.py
- Remove read_memory/write_memory calls and imports from slack_poller.py
- Update all tests to remove memory mock patches

Closes #67

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@IceRhymers
IceRhymers force-pushed the issue-67-memory-mcp branch from 2c20f6d to 48b91e0 Compare March 31, 2026 13:48
@IceRhymers
IceRhymers merged commit 952ec5b into master Mar 31, 2026
1 check passed
@IceRhymers
IceRhymers deleted the issue-67-memory-mcp branch April 3, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: memory MCP server — read/write MEMORY.md on UC Volume

1 participant