rag-memory-epf-mcp 3.5.0 → 3.5.1

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2660,9 +2660,12 @@ async function main() {
2660
2660
  process.exit(1);
2661
2661
  }
2662
2662
  }
2663
- // Only boot the server when run as the entry point not when imported (tests).
2664
- const isDirectRun = process.argv[1] === fileURLToPath(import.meta.url);
2665
- if (isDirectRun) {
2663
+ // Boot the server unless explicitly suppressed. Tests import this module with
2664
+ // RAG_MEMORY_NO_AUTOSTART=1 to access the class without starting the stdio server.
2665
+ // (An argv-vs-import.meta.url comparison is unreliable: npx/bin launches the entry
2666
+ // via a symlinked path, so the two never match and main() silently skips → the
2667
+ // MCP client cannot connect. v3.5.0 shipped that bug; env-var opt-out is robust.)
2668
+ if (process.env.RAG_MEMORY_NO_AUTOSTART !== '1') {
2666
2669
  main().catch((error) => {
2667
2670
  console.error("Fatal error in main():", error);
2668
2671
  ragKgManager.cleanup();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rag-memory-epf-mcp",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Project-local RAG memory MCP server — knowledge graph + multilingual vector + FTS5 in a single SQLite file. Per-project isolation, 30 MCP tools, codepoint-safe chunking (Korean/CJK/emoji).",
5
5
  "keywords": [
6
6
  "mcp",
@@ -41,7 +41,7 @@
41
41
  "prepare": "npm run build",
42
42
  "watch": "tsc --watch",
43
43
  "verify:invariants": "node test/chunk-invariants.test.mjs",
44
- "verify:engine": "node test/engine-smoke.test.mjs && node test/sync-atomicity.test.mjs && node test/dedup.test.mjs && node test/search-degradation.test.mjs",
44
+ "verify:engine": "node test/engine-smoke.test.mjs && node test/launch-smoke.test.mjs && node test/sync-atomicity.test.mjs && node test/dedup.test.mjs && node test/search-degradation.test.mjs",
45
45
  "test": "npm run build && npm run verify:invariants && npm run verify:engine",
46
46
  "prepublishOnly": "npm run build && npm run verify:invariants && npm run verify:engine"
47
47
  },