@danielsimonjr/memory-mcp 12.7.1 → 12.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Memory MCP Server
2
2
 
3
- [![Version](https://img.shields.io/badge/version-12.7.0-blue.svg)](https://github.com/danielsimonjr/memory-mcp)
3
+ [![Version](https://img.shields.io/badge/version-12.7.2-blue.svg)](https://github.com/danielsimonjr/memory-mcp)
4
4
  [![NPM](https://img.shields.io/npm/v/@danielsimonjr/memory-mcp.svg)](https://www.npmjs.com/package/@danielsimonjr/memory-mcp)
5
5
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
6
6
  [![MCP](https://img.shields.io/badge/MCP-1.0-purple.svg)](https://modelcontextprotocol.io)
@@ -707,9 +707,10 @@ Discrete facts about entities. Each observation should be atomic and independent
707
707
  |----------|-------------|---------|
708
708
  | `MEMORY_FILE_PATH` | Path to storage file | `memory.jsonl` (current directory) |
709
709
  | `MEMORY_STORAGE_TYPE` | Storage backend: `jsonl` or `sqlite` | `jsonl` |
710
- | `MEMORY_EMBEDDING_PROVIDER` | Embedding provider: `openai`, `local`, or `none` | `none` |
710
+ | `MEMORY_EMBEDDING_PROVIDER` | Embedding provider: `openai`, `local`, `llamacpp`, or `none` | `none` |
711
711
  | `MEMORY_OPENAI_API_KEY` | OpenAI API key (required if provider is `openai`) | - |
712
- | `MEMORY_EMBEDDING_MODEL` | Embedding model to use | `text-embedding-3-small` (OpenAI) / `Xenova/all-MiniLM-L6-v2` (local) |
712
+ | `MEMORY_EMBEDDING_MODEL` | Embedding model to use | `text-embedding-3-small` (OpenAI) / `Xenova/all-MiniLM-L6-v2` (local) / `llamacpp-local` (llamacpp) |
713
+ | `MEMORY_EMBEDDING_BASE_URL` | Base URL of a local `llama-server` (used when provider is `llamacpp`) | `http://127.0.0.1:8080` |
713
714
  | `MEMORY_AUTO_INDEX_EMBEDDINGS` | Auto-index entities on creation | `false` |
714
715
 
715
716
  ### Storage Backends
@@ -908,9 +909,10 @@ We welcome contributions!
908
909
 
909
910
  All notable changes are documented in **[CHANGELOG.md](CHANGELOG.md)**.
910
911
 
911
- **Current version**: v12.7.0 - [View full changelog](CHANGELOG.md)
912
+ **Current version**: v12.7.2 - [View full changelog](CHANGELOG.md)
912
913
 
913
914
  Recent highlights:
915
+ - **v12.7.2**: Bumped `@danielsimonjr/memoryjs` `^3.0.0` → `^3.1.0` — Node 24 `better-sqlite3` prebuilds (`^12.11.1`) and the `llamacpp` embedding provider (`MEMORY_EMBEDDING_PROVIDER=llamacpp` + `MEMORY_EMBEDDING_BASE_URL`). No new tools.
914
916
  - **v12.7.0** (241 tools): Upgraded `@danielsimonjr/memoryjs` `^2.8.1` → `^3.0.0` and surfaced its new features as 16 tools — event memory (5), reconstructive Cue–Tag–Content memory + snapshot persistence (5), relation consolidation (2), agent reflection (4) — plus v3 graph-channel / evidence-path options on `hybrid_search`. Refactored handlers onto the new `ManagerContext` accessors (`hybridSearchManager`, `governanceManager`, `eventManager`, `reflectionManager`, `reconstructiveMemory()`, `close()`).
915
917
  - **v12.5.0** (225 tools): 10 engineering / diagnostic tools mirroring the memoryjs CLI surface (`diag`, `health`, `check_graph`, `reindex`, cache stats/clear, `graph_size`, `inspect_entity`, `hierarchy_tree`, `entity_neighbors`).
916
918
  - **v12.3.2** (215 tools): Backport of the deferred `set_project_scope` / `get_project_scope` pair.
@@ -1 +1 @@
1
- {"version":3,"file":"MCPServer.d.ts","sourceRoot":"","sources":["../../src/server/MCPServer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAOtE;;;GAGG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAiB;IAE5B,YAAY,GAAG,EAAE,cAAc,EAe9B;IAED,OAAO,CAAC,oBAAoB;IAetB,KAAK,kBAIV;CACF"}
1
+ {"version":3,"file":"MCPServer.d.ts","sourceRoot":"","sources":["../../src/server/MCPServer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAqBtE;;;GAGG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAiB;IAE5B,YAAY,GAAG,EAAE,cAAc,EAe9B;IAED,OAAO,CAAC,oBAAoB;IAetB,KAAK,kBAIV;CACF"}
@@ -14,7 +14,14 @@ import { logger } from '@danielsimonjr/memoryjs';
14
14
  import { toolDefinitions } from './toolDefinitions.js';
15
15
  import { handleToolCall } from './toolHandlers.js';
16
16
  const require = createRequire(import.meta.url);
17
- const { version } = require('../../package.json');
17
+ // `require('../../package.json')` resolves from dist/server/ but NOT from
18
+ // bundle/index.mjs, where it threw "Cannot find module '../../package.json'" and
19
+ // killed the server on startup. The injected constant is used when present; the
20
+ // `typeof` guard is safe on an undeclared identifier and lets esbuild
21
+ // dead-code-eliminate the require branch in the bundle.
22
+ const version = typeof __PKG_VERSION__ === 'string'
23
+ ? __PKG_VERSION__
24
+ : require('../../package.json').version;
18
25
  /**
19
26
  * MCP Server for Knowledge Graph operations.
20
27
  * Exposes tools for entity/relation management, search, and analysis.
@@ -896,7 +896,7 @@ export const toolHandlers = {
896
896
  semantic_search: async (ctx, args) => {
897
897
  const semanticSearch = ctx.semanticSearch;
898
898
  if (!semanticSearch) {
899
- return formatTextResponse('Semantic search is not available. Set MEMORY_EMBEDDING_PROVIDER environment variable to "openai" or "local".');
899
+ return formatTextResponse('Semantic search is not available. Set MEMORY_EMBEDDING_PROVIDER environment variable to "openai", "local", or "llamacpp".');
900
900
  }
901
901
  const query = validateWithSchema(args.query, SearchQuerySchema, 'Invalid search query');
902
902
  const limit = args.limit !== undefined
@@ -919,7 +919,7 @@ export const toolHandlers = {
919
919
  find_similar_entities: async (ctx, args) => {
920
920
  const semanticSearch = ctx.semanticSearch;
921
921
  if (!semanticSearch) {
922
- return formatTextResponse('Semantic search is not available. Set MEMORY_EMBEDDING_PROVIDER environment variable to "openai" or "local".');
922
+ return formatTextResponse('Semantic search is not available. Set MEMORY_EMBEDDING_PROVIDER environment variable to "openai", "local", or "llamacpp".');
923
923
  }
924
924
  const entityName = validateWithSchema(args.entityName, z.string().min(1), 'Invalid entity name');
925
925
  const limit = args.limit !== undefined
@@ -942,7 +942,7 @@ export const toolHandlers = {
942
942
  index_embeddings: async (ctx, args) => {
943
943
  const semanticSearch = ctx.semanticSearch;
944
944
  if (!semanticSearch) {
945
- return formatTextResponse('Semantic search is not available. Set MEMORY_EMBEDDING_PROVIDER environment variable to "openai" or "local".');
945
+ return formatTextResponse('Semantic search is not available. Set MEMORY_EMBEDDING_PROVIDER environment variable to "openai", "local", or "llamacpp".');
946
946
  }
947
947
  const forceReindex = args.forceReindex !== undefined
948
948
  ? validateWithSchema(args.forceReindex, z.boolean(), 'Invalid forceReindex value')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielsimonjr/memory-mcp",
3
- "version": "12.7.1",
3
+ "version": "12.8.0",
4
4
  "description": "Enhanced MCP memory server with hierarchies, compression, archiving, graph algorithms, semantic search, temporal KG, RBAC, bitemporal validity, OCC, procedural memory, causal reasoning, world model, do_not_remember exclusions, decision rationale, project context, heuristic guidelines, tool affordance + observer, observation dedup, spell correction, event memory, reconstructive memory, relation consolidation, agent reflection, and 241 advanced tools",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -58,12 +58,12 @@
58
58
  "tools:build": "cd tools/chunking-for-files && npm run build && cd ../compress-for-context && npm run build && cd ../create-dependency-graph && npm run build && cd ../migrate-from-jsonl-to-sqlite && npm run build"
59
59
  },
60
60
  "dependencies": {
61
- "@danielsimonjr/memoryjs": "^3.0.0",
61
+ "@danielsimonjr/memoryjs": "^3.3.0",
62
62
  "@modelcontextprotocol/sdk": "^1.30.0",
63
63
  "zod": "^4.4.3"
64
64
  },
65
65
  "overrides": {
66
- "better-sqlite3": "^12.10.1"
66
+ "better-sqlite3": "^12.11.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/node": "^26",