Repository navigation
v0.5.0: safer memory file, better search
MemoryMesh is an MCP server that gives AI models a structured, long-term memory as a knowledge graph. This release makes the memory file much harder to lose, makes search and schema fields behave the way an AI expects, and adds automated tests.
This is the first tagged release. It also includes v0.4.0, the rewrite of the internals into a small core, which was never published as a release. See the changelog for both.
Upgrading
git pull
npm installThen restart your MCP client. Tool names, schema files and the memory file format are unchanged.
The default memory location has moved to .memorymesh/memory.json in your home folder. If you already have a memory file in dist/data/memory.json, MemoryMesh keeps using it and logs a warning, because deleting dist/ would delete your memory. To fix that, quit your MCP client and move the file to the new location. If you set MEMORYMESH_MEMORY_FILE, nothing changes for you.
Keeping your memory safe
- The memory file no longer lives in the build folder by default, where cleaning or deleting
dist/deleted it. - Lines MemoryMesh doesn't understand are no longer erased. They used to be dropped on the next save, which wiped a file written by another tool such as the original Knowledge Graph Memory Server. They are now kept unchanged and reported in the log.
- A hand-edited memory file no longer breaks searching. A node without a
metadatalist is read as having none. Nodes or edges missing required parts are left out of the graph and kept in the file.
Tools
search_nodesunderstands several words. A node matches when every word of the query appears in its name, type or metadata, in any order.blacksmith rivertonused to find nothing unless that exact phrase was stored.enumvalues are enforced.add_<entity>andupdate_<entity>reject a value outside the field'senumand list the allowed ones.- An empty list clears a field.
update_<entity>with"traits": []removes the entry, and for a relationship field its edges. - Names like
constructorortoStringare no longer accepted as tool names. They return the normal "Unknown tool" error.
Schemas
- Schema files are checked more thoroughly. A schema that would produce a malformed tool definition is skipped with a reason in the log. A warning is logged for settings that load but probably won't behave as expected, such as two relationship fields sharing an
edgeType. - Two small bundled examples,
npcandlocation. Larger ready-made sets are shared in Discussions: People & organization, Personal CRM, Research & reading notes and RPG & storytelling. Existing installs keep the schemas already indist/data/schemas.
Project
- Tests now run automatically on every pull request and push to
main(Node 22 and 24). - The README was rewritten to be shorter and up to date.