Add MCP server: expose memwalk as tools for Claude Code / opencode / agents

New `memwalk mcp` subcommand starts a stdio MCP server exposing four
tools: ask, standup, status, update. The underlying memba Session is
loaded lazily on the first call that needs the model, then reused for
the lifetime of the process — first query ~2s, subsequent <500ms.

- memwalk/mcp_server.py — Server + tool list/dispatch using mcp SDK
- memwalk/cli.py        — `memwalk mcp` subcommand wires it up
- pyproject.toml        — mcp>=1.0.0 dependency
- README.md             — setup instructions for Claude Code and opencode

Verified locally: tools/list returns all 4, tools/call status returns
the expected JSON without loading the model.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
emil
2026-05-16 14:04:25 +03:00
co-authored by Claude Opus 4.7
parent 564478710e
commit 9877edd610
4 changed files with 253 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@ dependencies = [
"memba>=0.1.0",
"typer>=0.9.0",
"rich>=13.0.0",
"mcp>=1.0.0",
"tomli>=2.0;python_version<'3.11'",
]