Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — `date -r FILE` is GNU-only. On BSD/macOS `date -r` expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable `os.path.getmtime` one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many `../` in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required `mcpServers` wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1).
1.3 KiB
1.3 KiB
OpenClaw Skill
MemPalace provides an official skill for OpenClaw, making it trivial to give your ClawHub agents complete access to the palace's declarative memory and knowledge graph.
Installation
The skill is built right into the integrations/openclaw directory of MemPalace.
You can add MemPalace as an MCP server to OpenClaw via the CLI:
openclaw mcp set mempalace '{"command":"python3","args":["-m","mempalace.mcp_server"]}'
Or by directly editing your OpenClaw configuration:
{
"mcpServers": {
"mempalace": {
"command": "python3",
"args": ["-m", "mempalace.mcp_server"]
}
}
}
How It Works
Once connected, OpenClaw agents receive all 33 tools along with the Memory Protocol—a strict behavioral guide indicating they should:
- Never guess: Query
mempalace_searchormempalace_kg_querybefore confidently answering. - Keep an agent diary: Maintain continuity between sessions by writing to
mempalace_diary_write. - Manage the Knowledge Graph: Update declarative facts when things change using
mempalace_kg_addandmempalace_kg_invalidate.
By connecting OpenClaw to MemPalace, you get both autonomous code execution and persistent, high-recall memory in the same workflow.