Skip to content

feat: MCP server — use memorywire (and recover) from any MCP agent#2

Merged
mthamil107 merged 1 commit into
mainfrom
feat/mcp
Jul 17, 2026
Merged

feat: MCP server — use memorywire (and recover) from any MCP agent#2
mthamil107 merged 1 commit into
mainfrom
feat/mcp

Conversation

@mthamil107

Copy link
Copy Markdown
Owner

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-mcp stdio server (FastMCP) exposing 6 tools: remember, recall, forget, merge, expire, recover.
  • remember exposes source — the provenance recover depends on.
  • recover defaults to dry_run=true (safe preview).
  • Config via env: MEMORYWIRE_STORE, MEMORYWIRE_AGENT.
  • [mcp] optional dependency + memorywire-mcp console entry point.

Add to a client

{ "mcpServers": { "memorywire": { "command": "memorywire-mcp",
    "env": { "MEMORYWIRE_STORE": "sqlite-vec://./mem.db", "MEMORYWIRE_AGENT": "assistant" } } } }

Tests

  • 2 new tests (tests/unit/test_mcp_server.py): all 6 tools register; remember(web_page) → recall → recover round-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.

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.
@mthamil107
mthamil107 merged commit f0f5770 into main Jul 17, 2026
1 check failed
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.

1 participant