feat: MCP server — use memorywire (and recover) from any MCP agent#2
Merged
Conversation
Adds memorywire-mcp (stdio) via FastMCP: remember/recall/forget/merge/expire/recover as MCP tools, so any MCP-aware agent gets persistent, recoverable memory by config alone. recover defaults to dry_run. [mcp] optional dep + memorywire-mcp entry point. 2 tests; full unit suite green (312). Docs + README section.
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.
Exposes memorywire's operations as MCP tools so any MCP-aware agent (Claude Desktop, IDE assistants, other clients) gets persistent, governable, recoverable memory by config alone — no code. This is the highest-leverage integration for reaching agent systems (MCP is the closest thing to a universal agent standard).
What
memorywire-mcpstdio server (FastMCP) exposing 6 tools:remember,recall,forget,merge,expire,recover.rememberexposessource— the provenancerecoverdepends on.recoverdefaults todry_run=true(safe preview).MEMORYWIRE_STORE,MEMORYWIRE_AGENT.[mcp]optional dependency +memorywire-mcpconsole entry point.Add to a client
{ "mcpServers": { "memorywire": { "command": "memorywire-mcp", "env": { "MEMORYWIRE_STORE": "sqlite-vec://./mem.db", "MEMORYWIRE_AGENT": "assistant" } } } }Tests
tests/unit/test_mcp_server.py): all 6 tools register;remember(web_page) → recall → recoverround-trip. Full unit suite green (312).Scope
Additive; v0.1 is stdio + tools. HTTP/SSE and the native MCP extension (
mcp.memory, v0.5) are noted, not built. Docs:docs/mcp-server.md.