{"_id":"megamemory","_rev":"15-653077ffe29d355bc63de297006acb85","name":"megamemory","dist-tags":{"latest":"1.6.2"},"versions":{"1.0.1":{"name":"megamemory","version":"1.0.1","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.0.1","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"ee1f9d0f9dfdffde7c85630fcfa2061602e69cba","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.0.1.tgz","fileCount":38,"integrity":"sha512-ISaZBhWXFkGkcSL+T3TncNZxY7XMakGIQksKqMV32c0oM3xdCXjJ3n1Ej305qF//04UuzAoxDCZIA+E+aCmnCQ==","signatures":[{"sig":"MEYCIQDMWahm1DGVL02+WRqVpRnZx69n/zlUGSzLk54GZnqLJQIhAKXsIb60/YVSAkHE1dbAzC1rkhK3f5O5tZq32e5eaF2s","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":142640},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"4ecdf61bcd6ce7d6ab3d0d8abf39cb82b006245c","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","picocolors":"^1.1.1","better-sqlite3":"^11.7.0","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.0.1_1770366971244_0.4754508144310541","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"megamemory","version":"1.1.0","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.1.0","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"86c6a9d4033598c9c6d570b5a127e564075945f2","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.1.0.tgz","fileCount":38,"integrity":"sha512-Msjc+jljt7MQUeleydseD8UZoqyPP6B0z/EpsLsrI3BLnNoHTPMLOyOWr+jJmg/1Q623jqUe2npM+3/KFtSWAA==","signatures":[{"sig":"MEUCIQD+4LxQma+N9+CGr9PtmRJpDb45bddRL+axhkF+yqou8QIgByU3aB7/B2ARfqUNXiAAfC+1/8l5WoMZQDtAmxjr9Ok=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":142955},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"1c73158b7540d04da19f981393e5138214029d98","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.1.0_1770409804117_0.12115911049449535","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"megamemory","version":"1.1.1","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.1.1","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"8c4d2763e7b973610e7c80c2252311fed95a69dc","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.1.1.tgz","fileCount":38,"integrity":"sha512-Rk0kye8OTCu/U1hfimX5div3DDOKom1BHOyWbAlaSt3fI1kr12DUaVDPLVGduOLcLCSnqZOrQw/TlS1yNzrIvg==","signatures":[{"sig":"MEQCIHTuUT+dEhJapmkEdP71G5uHO0b4nrGZJMUlQ3HPrKXGAiBpEQZUimnyvz0ylvK3CqTY6n1ECgWm7TWeyMMisnXROg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":143192},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"c7390326b2596d7e4571755c7b72c279dc45de7e","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.1.1_1770411721044_0.759969068875703","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"megamemory","version":"1.1.2","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.1.2","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"1507e2b2961dd61deb7a75ac222351d319ef645a","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.1.2.tgz","fileCount":39,"integrity":"sha512-9HXr60LdfyAlpzT/l+eZc7RGPXTysywhho60NON74T6yEtIJxeL2R9waQ1s5SJmmOqrMUWQtL3BkRZrRC3lPMw==","signatures":[{"sig":"MEUCIQDpKV59qNWcS+ygGNbFMVq/Ro/z08SpDNnQtf0jQ59ONgIgDb3xoMNbbPxOVaGymmMjvQnQCnJrCr+yNEJLTiaXT9A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":148339},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"1c0fcff00b57f9ce987479a26f4056a0727c48a3","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.1.2_1770413297144_0.7538445425462355","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"megamemory","version":"1.2.0","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.2.0","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"c26817d97d3be2a16aecf17b4d1535ac8bddf514","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.2.0.tgz","fileCount":47,"integrity":"sha512-tMCMeAonVozpImhVFwUyp/qfLNtDLEjzlKpCCOE+7A9T+tpgymuT/F4BwVXwix5yXW2XqqJSi1RZSK1U9tI6eA==","signatures":[{"sig":"MEYCIQCwIT46LEW4j9gie4+GxlCdaj4UB/OGhanaX47F1e4G6wIhAJICqRJW2wZ5IhMdA0485gz3PcNg8qQyZPAfZ/QC3Heg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":242374},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"33140b02adcd1993b8db058c34f527e25c0eb13c","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.2.0_1770497244744_0.6636367155852776","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"megamemory","version":"1.2.1","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.2.1","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"1a6b5bd1844d5d540f63b9f68dcaa13f6d9b696d","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.2.1.tgz","fileCount":47,"integrity":"sha512-1ADhmqNoYa1211+EF4ceuNDIJmI46w5Ca5pnpZveBMT6PlTg59hpigSopaHcLimteoJMMxkmK8EaQVC4wbO0ZQ==","signatures":[{"sig":"MEUCIA7myu05oRf+WPxonmw+dGYnKCmr0VdWhVr9ApsrngwjAiEAulO6dYzI9Hsf0s+cllrWBE5+GyKoGUWU/EtF8hKYJyw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":243761},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"23e91cd5d06e51847786f742da654dbc6fadfba2","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.2.1_1770539121370_0.630334393182993","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"megamemory","version":"1.3.1","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.3.1","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"0b57c38c591b0ac0672f9824640429a170c18324","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.3.1.tgz","fileCount":47,"integrity":"sha512-YvARk6VWnSqDE+3suQCBNtrqFvZv2K21YSI01idcoi4dAHF/g12mEaZStANqJphUwbBpyL//gL3bat9A6XKQeA==","signatures":[{"sig":"MEYCIQCam6GSwOu9MeApylWTqrZNzajw+e/wW65oCFD7nvYZbwIhALhnoLYhJiE47MKQxzw8hxZx8H4OWCMSKETxia7B5BRn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":279900},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"da17164c31bd426df8591cf0ace9880bb25dba9c","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.3.1_1770695499693_0.8112839261820932","host":"s3://npm-registry-packages-npm-production"}},"1.3.2":{"name":"megamemory","version":"1.3.2","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.3.2","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"8970a5a14bc30b764b11d8b5765c4494ed9650fc","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.3.2.tgz","fileCount":55,"integrity":"sha512-EXnh4QGaVBPCarvfOkR+eb0FR/Ac8VxDo4nY/JLyAhTibcclooIrwaHio5q4CO+5x8wmmAVt2O8tCJELP/hL6w==","signatures":[{"sig":"MEYCIQCWtuxyDM/amti9o/SsD2OO/j0YOEtE9du4UMyVUcSBCQIhAKJM988EFg2ouuFgcyMqsgG2Gk9AFgCsmbOYBT0cfOX5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":336136},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"80152d3125c881429cb87873423166826f33b7b4","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.3.2_1770836764714_0.2732730157235772","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"megamemory","version":"1.3.3","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.3.3","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"53b6ef174db42449d8790105e16827fe083f07bf","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.3.3.tgz","fileCount":55,"integrity":"sha512-1l6H705NPJ5QRBFvQFEyZgzH2Dcm7kzZmaIZSTHbIyglISfsQTLO9fx/LugwHifVkqUBOVjxv3yDpbLihCH68Q==","signatures":[{"sig":"MEYCIQDCsIoUsK9OpUM0wOvez6zEwA4GXVl+SaTyn1P1Oz1gvQIhAO3NiTl8kw5EDpsA3aVxqj85pLFMCpx4DBqFeQYvKIT2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.3.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":338945},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"8f6ddb2ed4484ba284164b2da67e96819a26bb63","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.3.3_1770837501206_0.891821323454915","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"megamemory","version":"1.4.0","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.4.0","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"941bc30ec317c3e2204cb63a6850e08b4c0dd731","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.4.0.tgz","fileCount":55,"integrity":"sha512-XCtx2hhXXNi5aq+8qc1dohaQBrytnMOuuUokj4DvlvTF0qtoMRPNFDkj3XAecEIduhzXbHNTTzAGGyYnHh1cXQ==","signatures":[{"sig":"MEUCIDO3vgqPyb9osXMWIfZ834AxJuW1c5dAjh+tZnOqzNWeAiEA9tfwqi3JCTjRzcXtxgOvX+oe6WblnvglBuFcZUxePvc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":380759},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"69d233406e070c137109929b2e026eb76d253b92","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.4.0_1771295177029_0.9870716515468447","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"megamemory","version":"1.4.1","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.4.1","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"1ac109360d7cbf5819224b4d25d901d2b1cd72d5","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.4.1.tgz","fileCount":55,"integrity":"sha512-7XQUKAJQosb5NIK4C6bSyA7QfWpeCasNxd3TlssfIQuGmkwmXyOuf4yV4hfeHkKUg63GFRdleSQha+IAxZyNvw==","signatures":[{"sig":"MEQCICoAkAJ0MXLqV8mKlL9Uz86JTht5x4GuBx6GgwY3LeCJAiBOk4XGQIfOxHg1GwwSc1V5OmpfRzTC5cmK1UkNJ5B5vQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":384717},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"42ca807598f911de4701ae82d48827a9f1d1b408","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.4.1_1772513902900_0.5290443719025613","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"megamemory","version":"1.5.0","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.5.0","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"95756bd8c71c36ebde11ef2e7753d8a53e85e40a","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.5.0.tgz","fileCount":55,"integrity":"sha512-NKPzckHPj/gNMM3vqXFhVfDuNewjGrR3SMqnKEx/TpugvO7q9P2/OtmnsHgM2NKR1xe/71dDT5Ds3q+XfMAnow==","signatures":[{"sig":"MEYCIQDfDdKxX2/unAGJ80u/i27p1Y1tayKZym6ESqqBSl/a6gIhAP2PVf4IZz8oDu0p1pHGZ/wk3Pht3rf8vRl8ZNbs/3QU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":390103},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"8e22f35fc6133900a04188b64f58ed71a1eb89d5","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.5.0_1772535691363_0.6277699926351321","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"megamemory","version":"1.6.0","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.6.0","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"f7fc62f594c8b9aeedfa2664bb92be5a45071292","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.6.0.tgz","fileCount":55,"integrity":"sha512-Hgg/gSneO5TqSmv97peUney8hY7EcOThE4bJk4aNaPZFm8JN4/BGQcgXMzc8q5LyjNCi2MsG8z+j6pB/HTAYwg==","signatures":[{"sig":"MEQCIHk7vGiLqkx4yNN0eIm0CxyJ3NB/TYPV1ZpmneoKrU/uAiBriT8l2BlvYjqtcujXKsgF3V1Yo+acr6CPXVD3NAvPjQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":402057},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"e913d60597abad4c72c00f3a315daf7f5e55eea8","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.6.0_1773624561868_0.6581937273597724","host":"s3://npm-registry-packages-npm-production"}},"1.6.1":{"name":"megamemory","version":"1.6.1","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","_id":"megamemory@1.6.1","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"bin":{"megamemory":"dist/index.js"},"dist":{"shasum":"8ed664312aa38f1a337c7efc9a681a23619a0efe","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.6.1.tgz","fileCount":55,"integrity":"sha512-Cou/PFaC8hn88lujlv/pDF4Ylop+mpvLrwZ2CsFHCDaq3IzsOrLdwNb55Cgt7aphdPgNdBWUeZYjR1FBCejd3A==","signatures":[{"sig":"MEYCIQD2W+q+BoTYph+3FhiH0aFIaLa/JKrlNumSuVo+n7mqWQIhAPnV7HTeQAzPFrmAdHylwF7Mp0Xk+YYFwwmDaUOBu+Dd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":405308},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"b62dd1cd6aef57768d8f3f878d8c04a1ef10ac95","scripts":{"dev":"tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"repository":{"url":"git+https://github.com/0xK3vin/MegaMemory.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","directories":{},"_nodeVersion":"20.20.1","dependencies":{"zod":"^3.24.2","libsql":"^0.5.22","picocolors":"^1.1.1","@xenova/transformers":"^2.17.2","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^4.0.18","typescript":"^5.7.3","@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/megamemory_1.6.1_1774034414331_0.6927339988413475","host":"s3://npm-registry-packages-npm-production"}},"1.6.2":{"name":"megamemory","version":"1.6.2","description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","type":"module","main":"dist/index.js","bin":{"megamemory":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsx src/index.ts","test":"vitest run","prepublishOnly":"npm run build"},"keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/0xK3vin/MegaMemory.git"},"homepage":"https://github.com/0xK3vin/MegaMemory#readme","bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"engines":{"node":">=18"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","@xenova/transformers":"^2.17.2","libsql":"^0.5.22","picocolors":"^1.1.1","zod":"^3.24.2"},"devDependencies":{"@types/node":"^20.17.14","@vitest/coverage-v8":"^4.0.18","tsx":"^4.19.2","typescript":"^5.7.3","vitest":"^4.0.18"},"_id":"megamemory@1.6.2","gitHead":"e0bb3c270d7fb4f6f280ae4685e0c538eb225d93","types":"./dist/index.d.ts","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-9S7w8NTejx9mXPMv4baKTrgg2t8auS8XfhMhz4ARVaRyHmrzzOXr6SgdZczb8PcPMHXYeZA8OGGjhcXDnwTM4Q==","shasum":"34fc7d22a7055db3320bd2ee45e46fefb8efd178","tarball":"https://registry.npmjs.org/megamemory/-/megamemory-1.6.2.tgz","fileCount":55,"unpackedSize":405344,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/megamemory@1.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCO33PgkvBL8cqkZVY0oAJEvlNdHSTrKp75wNHk4i7HTwIhAPOJzf+QmEwxNSsU7QBHB5S7qwtpV8zMg33VXDulhebx"}]},"_npmUser":{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"},"directories":{},"maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/megamemory_1.6.2_1777767780604_0.708277570760734"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-06T08:36:11.100Z","modified":"2026-05-03T00:23:00.997Z","1.0.1":"2026-02-06T08:36:11.409Z","1.1.0":"2026-02-06T20:30:04.277Z","1.1.1":"2026-02-06T21:02:01.202Z","1.1.2":"2026-02-06T21:28:17.308Z","1.2.0":"2026-02-07T20:47:24.880Z","1.2.1":"2026-02-08T08:25:21.515Z","1.3.1":"2026-02-10T03:51:39.840Z","1.3.2":"2026-02-11T19:06:04.920Z","1.3.3":"2026-02-11T19:18:21.375Z","1.4.0":"2026-02-17T02:26:17.200Z","1.4.1":"2026-03-03T04:58:23.039Z","1.5.0":"2026-03-03T11:01:31.511Z","1.6.0":"2026-03-16T01:29:22.066Z","1.6.1":"2026-03-20T19:20:14.480Z","1.6.2":"2026-05-03T00:23:00.759Z"},"bugs":{"url":"https://github.com/0xK3vin/MegaMemory/issues"},"author":{"name":"0xk3vin","email":"https://github.com/0xk3vin"},"license":"MIT","homepage":"https://github.com/0xK3vin/MegaMemory#readme","keywords":["mcp","knowledge-graph","coding-agent","persistent-memory","opencode","llm","sqlite","embeddings","ai"],"repository":{"type":"git","url":"git+https://github.com/0xK3vin/MegaMemory.git"},"description":"MCP server that gives coding agents persistent project understanding via a knowledge graph","maintainers":[{"name":"0xk3vin","email":"kevinguzman8950@gmail.com"}],"readme":"<p align=\"center\">\n  <h1 align=\"center\">MegaMemory</h1>\n</p>\n<p align=\"center\">Persistent project knowledge graph for coding agents.</p>\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/megamemory\"><img alt=\"npm\" src=\"https://img.shields.io/npm/v/megamemory?style=flat-square\" /></a>\n  <a href=\"./LICENSE\"><img alt=\"license\" src=\"https://img.shields.io/npm/l/megamemory?style=flat-square\" /></a>\n  <a href=\"https://nodejs.org\"><img alt=\"node\" src=\"https://img.shields.io/node/v/megamemory?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/megamemory\"><img alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/megamemory?style=flat-square\" /></a>\n  <a href=\"https://x.com/M3ruH4sh\"><img alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/M3ruH4sh?style=social\" /></a>\n</p>\n\n<p align=\"center\">\n  <img src=\"./assets/preview.png\" alt=\"MegaMemory web explorer\" width=\"800\" />\n</p>\n\n---\n\nAn [MCP](https://modelcontextprotocol.io/) server that lets your coding agent build and query a graph of concepts, architecture, and decisions — so it **remembers across sessions**.\n\nThe LLM is the indexer. No AST parsing. No static analysis. Your agent reads code, writes concepts in its own words, and queries them before future tasks. The graph stores **concepts** — features, modules, patterns, decisions — not code symbols.\n\n### The Loop\n\n<p align=\"center\">\n  <img src=\"./assets/how-it-works.svg\" alt=\"How MegaMemory works\" width=\"800\" />\n</p>\n\n`understand → work → update`\n\n1. **Session start** — agent calls `list_roots` to orient itself\n2. **Before a task** — agent calls `understand` with a natural language query (or `get_concept` for exact ID lookup)\n3. **After a task** — agent calls `create_concept` or `update_concept` to record what it built\n\nEverything persists in a per-project SQLite database at `.megamemory/knowledge.db`.\n\n---\n\n### Installation\n\n```bash\nnpm install -g megamemory\n```\n\n> [!NOTE]\n> Requires Node.js >= 18. The embedding model (~23MB) downloads automatically on first use.\n\n### Quick Start\n\n```bash\nmegamemory install\n```\n\nRun the interactive installer and choose your editor:\n\n> [!NOTE]\n> The installer only updates config files after a successful read/merge, and it will not overwrite existing plugin/command files unless they are already marked as MegaMemory-managed.\n\n#### With [opencode](https://opencode.ai)\n\n```bash\nmegamemory install --target opencode\n```\n\nOne command configures:\n- MCP server in `~/.config/opencode/opencode.json`\n- Workflow instructions in `~/.config/opencode/AGENTS.md`\n- Skill tool plugin at `~/.config/opencode/tool/megamemory.ts`\n- Bootstrap command `/user:bootstrap-memory` for initial graph population\n- Save command `/user:save-memory` to persist session knowledge\n\nRestart opencode after running install.\n\n#### With [Claude Code](https://code.claude.com)\n\n```bash\nmegamemory install --target claudecode\n```\n\nConfigures:\n- MCP server in `~/.claude.json`\n- Workflow instructions in `~/.claude/CLAUDE.md`\n- Commands in `~/.claude/commands/`\n\n#### With [Antigravity](https://idx.google.com)\n\n```bash\nmegamemory install --target antigravity\n```\n\nConfigures:\n- MCP server in `./mcp_config.json` (workspace-level)\n\n#### With [Codex](https://openai.com/codex)\n\n```bash\nmegamemory install --target codex\n```\n\nConfigures:\n- MCP server in `~/.codex/config.toml`\n- Workflow instructions in `~/.codex/AGENTS.md`\n\n#### With other MCP clients\n\nAdd megamemory as a stdio MCP server. The command is just `megamemory` (no arguments). It reads/writes `.megamemory/knowledge.db` relative to the working directory, or set `MEGAMEMORY_DB_PATH` to override.\n\n```json\n{\n  \"megamemory\": {\n    \"type\": \"local\",\n    \"command\": [\"megamemory\"],\n    \"enabled\": true\n  }\n}\n```\n\n---\n\n### MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| `understand` | Semantic search over the knowledge graph. Returns matched concepts with children, edges, and parent context. |\n| `get_concept` | Look up a concept by its exact ID. Returns full context including children, edges, incoming edges, and parent. |\n| `create_concept` | Add a new concept with optional edges and file references. |\n| `update_concept` | Update fields on an existing concept. Regenerates embeddings automatically. |\n| `link` | Create a typed relationship between two concepts. |\n| `remove_concept` | Soft-delete a concept with a reason. History preserved. |\n| `list_roots` | List all top-level concepts with direct children. |\n| `list_conflicts` | List unresolved merge conflicts grouped by merge group. |\n| `resolve_conflict` | Resolve a merge conflict by providing verified, correct content based on the current codebase. |\n\n**Concept kinds:** `feature` · `module` · `pattern` · `config` · `decision` · `component`\n\n**Relationship types:** `connects_to` · `depends_on` · `implements` · `calls` · `configured_by`\n\n### Knowledge Graph\n\n<p align=\"center\">\n  <img src=\"./assets/knowledge-graph.svg\" alt=\"MegaMemory knowledge graph example\" width=\"800\" />\n</p>\n\n---\n\n### Web Explorer\n\nVisualize the knowledge graph in your browser:\n\n```bash\nmegamemory serve\n```\n\n- Nodes are colored by kind and sized by edge count\n- Dashed edges show parent-child links; solid edges show relationships\n- Click any node to inspect summary, files, and edges\n- Search supports highlight/dim filtering\n- If port `4321` is taken, you'll be prompted to pick another\n\n```bash\nmegamemory serve --port 8080   # custom port\n```\n\n---\n\n### How It Works\n\n<p align=\"center\">\n  <img src=\"./assets/architecture.svg\" alt=\"MegaMemory architecture diagram\" width=\"800\" />\n</p>\n\n```\nsrc/\n  index.ts       CLI entry + MCP server (9 tools)\n  tools.ts       Tool handlers (understand, get_concept, create, update, link, remove, list_conflicts, resolve_conflict)\n  db.ts          SQLite persistence (libsql, WAL mode, schema v3)\n  embeddings.ts  In-process embeddings (all-MiniLM-L6-v2, 384 dims)\n  merge.ts       Two-way merge engine for knowledge.db files\n  merge-cli.ts   CLI handlers for merge, conflicts, resolve commands\n  types.ts       TypeScript types\n  cli-utils.ts   Colored output + interactive prompts\n  install.ts     multi-target installer (opencode, Claude Code, Antigravity, Codex)\n  web.ts         HTTP server for graph explorer\nplugin/\n  megamemory.ts  Opencode skill tool plugin\ncommands/\n  bootstrap-memory.md  /user command for initial population\n  save-memory.md       /user command to save session knowledge\nweb/\n  index.html     Single-file graph visualization (d3-force + Canvas)\n```\n\n- **Embeddings** — In-process via [Xenova/all-MiniLM-L6-v2](https://huggingface.co/Xenova/all-MiniLM-L6-v2) (ONNX, quantized). No API keys, and no network calls after the first model download.\n- **Storage** — SQLite with WAL mode, soft-delete history, and schema migrations (currently v3).\n- **Search** — Brute-force cosine similarity over node embeddings; fast enough for graphs with <10k nodes.\n- **Merge** — Two-way merge with conflict detection by concept ID, with AI-assisted conflict resolution via MCP tools.\n\n---\n\n### CLI Commands\n\n| Command | Description |\n|---------|-------------|\n| `megamemory` | Start the MCP stdio server |\n| `megamemory install` | Configure editor/agent integration |\n| `megamemory serve` | Launch the web graph explorer |\n| `megamemory merge` | Merge two knowledge.db files |\n| `megamemory conflicts` | List unresolved merge conflicts |\n| `megamemory resolve` | Resolve a merge conflict |\n| `megamemory --help` | Show help |\n| `megamemory --version` | Show version |\n\n---\n\n### Merging Knowledge Graphs\n\nWhen branches diverge, each may update `.megamemory/knowledge.db` independently. Since SQLite files cannot be auto-merged by git, megamemory provides dedicated merge commands.\n\n#### Merge two databases\n\n```bash\nmegamemory merge main.db feature.db --into merged.db\n```\n\nConcepts are compared by ID: identical nodes are deduplicated, and conflicting nodes are kept as `::left`/`::right` variants under one merge group UUID. Use `--left-label` and `--right-label` to replace default side labels with branch names.\n\n```bash\nmegamemory merge main.db feature.db --into merged.db --left-label main --right-label feature-xyz\n```\n\n#### View conflicts\n\n```bash\nmegamemory conflicts            # human-readable summary\nmegamemory conflicts --json     # machine-readable output\nmegamemory conflicts --db path  # specify database path\n```\n\n#### Resolve conflicts manually\n\n```bash\nmegamemory resolve <merge-group-uuid> --keep left    # keep the left version\nmegamemory resolve <merge-group-uuid> --keep right   # keep the right version\nmegamemory resolve <merge-group-uuid> --keep both    # keep both as separate concepts\n```\n\n#### AI-assisted resolution\n\nWhen an AI agent runs `/merge`, it calls `list_conflicts`, verifies both versions against current source files, then calls `resolve_conflict` with `resolved: {summary, why?, file_refs?}` plus a verification `reason`. It does not pick a side blindly; it resolves to what the codebase currently reflects.\n\n---\n\n### License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}