superlocalmemory 2.3.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.
Files changed (100) hide show
  1. package/ATTRIBUTION.md +140 -0
  2. package/CHANGELOG.md +1749 -0
  3. package/LICENSE +21 -0
  4. package/README.md +600 -0
  5. package/bin/aider-smart +72 -0
  6. package/bin/slm +202 -0
  7. package/bin/slm-npm +73 -0
  8. package/bin/slm.bat +195 -0
  9. package/bin/slm.cmd +10 -0
  10. package/bin/superlocalmemoryv2:list +3 -0
  11. package/bin/superlocalmemoryv2:profile +3 -0
  12. package/bin/superlocalmemoryv2:recall +3 -0
  13. package/bin/superlocalmemoryv2:remember +3 -0
  14. package/bin/superlocalmemoryv2:reset +3 -0
  15. package/bin/superlocalmemoryv2:status +3 -0
  16. package/completions/slm.bash +58 -0
  17. package/completions/slm.zsh +76 -0
  18. package/configs/antigravity-mcp.json +13 -0
  19. package/configs/chatgpt-desktop-mcp.json +7 -0
  20. package/configs/claude-desktop-mcp.json +15 -0
  21. package/configs/codex-mcp.toml +13 -0
  22. package/configs/cody-commands.json +29 -0
  23. package/configs/continue-mcp.yaml +14 -0
  24. package/configs/continue-skills.yaml +26 -0
  25. package/configs/cursor-mcp.json +15 -0
  26. package/configs/gemini-cli-mcp.json +11 -0
  27. package/configs/jetbrains-mcp.json +11 -0
  28. package/configs/opencode-mcp.json +12 -0
  29. package/configs/perplexity-mcp.json +9 -0
  30. package/configs/vscode-copilot-mcp.json +12 -0
  31. package/configs/windsurf-mcp.json +16 -0
  32. package/configs/zed-mcp.json +12 -0
  33. package/docs/ARCHITECTURE.md +877 -0
  34. package/docs/CLI-COMMANDS-REFERENCE.md +425 -0
  35. package/docs/COMPETITIVE-ANALYSIS.md +210 -0
  36. package/docs/COMPRESSION-README.md +390 -0
  37. package/docs/GRAPH-ENGINE.md +503 -0
  38. package/docs/MCP-MANUAL-SETUP.md +720 -0
  39. package/docs/MCP-TROUBLESHOOTING.md +787 -0
  40. package/docs/PATTERN-LEARNING.md +363 -0
  41. package/docs/PROFILES-GUIDE.md +453 -0
  42. package/docs/RESET-GUIDE.md +353 -0
  43. package/docs/SEARCH-ENGINE-V2.2.0.md +748 -0
  44. package/docs/SEARCH-INTEGRATION-GUIDE.md +502 -0
  45. package/docs/UI-SERVER.md +254 -0
  46. package/docs/UNIVERSAL-INTEGRATION.md +432 -0
  47. package/docs/V2.2.0-OPTIONAL-SEARCH.md +666 -0
  48. package/docs/WINDOWS-INSTALL-README.txt +34 -0
  49. package/docs/WINDOWS-POST-INSTALL.txt +45 -0
  50. package/docs/example_graph_usage.py +148 -0
  51. package/hooks/memory-list-skill.js +130 -0
  52. package/hooks/memory-profile-skill.js +284 -0
  53. package/hooks/memory-recall-skill.js +109 -0
  54. package/hooks/memory-remember-skill.js +127 -0
  55. package/hooks/memory-reset-skill.js +274 -0
  56. package/install-skills.sh +436 -0
  57. package/install.ps1 +417 -0
  58. package/install.sh +755 -0
  59. package/mcp_server.py +585 -0
  60. package/package.json +94 -0
  61. package/requirements-core.txt +24 -0
  62. package/requirements.txt +10 -0
  63. package/scripts/postinstall.js +126 -0
  64. package/scripts/preuninstall.js +57 -0
  65. package/skills/slm-build-graph/SKILL.md +423 -0
  66. package/skills/slm-list-recent/SKILL.md +348 -0
  67. package/skills/slm-recall/SKILL.md +325 -0
  68. package/skills/slm-remember/SKILL.md +194 -0
  69. package/skills/slm-status/SKILL.md +363 -0
  70. package/skills/slm-switch-profile/SKILL.md +442 -0
  71. package/src/__pycache__/cache_manager.cpython-312.pyc +0 -0
  72. package/src/__pycache__/embedding_engine.cpython-312.pyc +0 -0
  73. package/src/__pycache__/graph_engine.cpython-312.pyc +0 -0
  74. package/src/__pycache__/hnsw_index.cpython-312.pyc +0 -0
  75. package/src/__pycache__/hybrid_search.cpython-312.pyc +0 -0
  76. package/src/__pycache__/memory-profiles.cpython-312.pyc +0 -0
  77. package/src/__pycache__/memory-reset.cpython-312.pyc +0 -0
  78. package/src/__pycache__/memory_compression.cpython-312.pyc +0 -0
  79. package/src/__pycache__/memory_store_v2.cpython-312.pyc +0 -0
  80. package/src/__pycache__/migrate_v1_to_v2.cpython-312.pyc +0 -0
  81. package/src/__pycache__/pattern_learner.cpython-312.pyc +0 -0
  82. package/src/__pycache__/query_optimizer.cpython-312.pyc +0 -0
  83. package/src/__pycache__/search_engine_v2.cpython-312.pyc +0 -0
  84. package/src/__pycache__/setup_validator.cpython-312.pyc +0 -0
  85. package/src/__pycache__/tree_manager.cpython-312.pyc +0 -0
  86. package/src/cache_manager.py +520 -0
  87. package/src/embedding_engine.py +671 -0
  88. package/src/graph_engine.py +970 -0
  89. package/src/hnsw_index.py +626 -0
  90. package/src/hybrid_search.py +693 -0
  91. package/src/memory-profiles.py +518 -0
  92. package/src/memory-reset.py +485 -0
  93. package/src/memory_compression.py +999 -0
  94. package/src/memory_store_v2.py +1088 -0
  95. package/src/migrate_v1_to_v2.py +638 -0
  96. package/src/pattern_learner.py +898 -0
  97. package/src/query_optimizer.py +513 -0
  98. package/src/search_engine_v2.py +403 -0
  99. package/src/setup_validator.py +479 -0
  100. package/src/tree_manager.py +720 -0
@@ -0,0 +1,787 @@
1
+ # MCP Troubleshooting Guide
2
+
3
+ **SuperLocalMemory V2** - Debugging MCP Integration Issues
4
+
5
+ ---
6
+
7
+ ## 🚀 Quick Diagnosis (Start Here)
8
+
9
+ ### Step 1: Verify MCP Server Works Standalone
10
+ ```bash
11
+ python3 ~/.claude-memory/mcp_server.py
12
+ ```
13
+
14
+ **Expected output:**
15
+ ```
16
+ ============================================================
17
+ SuperLocalMemory V2 - MCP Server
18
+ Version: 2.3.0-universal
19
+ ============================================================
20
+
21
+ Transport: stdio
22
+ Database: /Users/yourusername/.claude-memory/memory.db
23
+
24
+ MCP Tools Available:
25
+ - remember(content, tags, project, importance)
26
+ - recall(query, limit, min_score)
27
+ ...
28
+
29
+ Status: Starting server...
30
+ ```
31
+
32
+ **If this fails, see Issue 1 below.**
33
+
34
+ ---
35
+
36
+ ### Step 2: Check IDE Shows MCP Server
37
+
38
+ | IDE | How to Check |
39
+ |-----|--------------|
40
+ | **Cursor** | Settings → Tools & MCP → "superlocalmemory-v2" (green dot) |
41
+ | **Claude Desktop** | Settings → Developer → "Edit Config" |
42
+ | **Windsurf** | Settings → MCP Servers |
43
+ | **VS Code** | Command Palette → "MCP: Open User Configuration" |
44
+ | **Zed** | Agent Panel → Settings → Green indicator dot |
45
+ | **ChatGPT** | Settings → Developer Mode → Connectors → MCP |
46
+
47
+ **If server doesn't appear, see Issue 2 below.**
48
+
49
+ ---
50
+
51
+ ### Step 3: Verify Configuration File
52
+
53
+ ```bash
54
+ # Cursor
55
+ cat ~/.cursor/mcp_settings.json | python3 -m json.tool
56
+
57
+ # Claude Desktop (macOS)
58
+ cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python3 -m json.tool
59
+
60
+ # Windsurf
61
+ cat ~/.windsurf/mcp_settings.json | python3 -m json.tool
62
+
63
+ # Zed
64
+ cat ~/.config/zed/settings.json | python3 -m json.tool
65
+
66
+ # OpenCode
67
+ cat ~/.config/opencode/opencode.json | python3 -m json.tool
68
+
69
+ # Antigravity
70
+ cat ~/.gemini/antigravity/mcp_config.json | python3 -m json.tool
71
+ ```
72
+
73
+ **Look for:**
74
+ - Valid JSON (no syntax errors)
75
+ - Correct paths (no `{{INSTALL_DIR}}` placeholders)
76
+ - `cwd` field present
77
+ - `env.PYTHONPATH` field present
78
+
79
+ **If JSON is invalid, see Issue 3 below.**
80
+
81
+ ---
82
+
83
+ ### Step 4: Check Python Environment
84
+
85
+ ```bash
86
+ which python3
87
+ # Should show: /usr/bin/python3 or /opt/homebrew/bin/python3 or similar
88
+
89
+ python3 -c "import mcp"
90
+ # Should complete without error
91
+
92
+ python3 -c "import sys; print('\n'.join(sys.path))"
93
+ # Should show paths including ~/.claude-memory
94
+ ```
95
+
96
+ **If Python issues, see Issue 2 or 4 below.**
97
+
98
+ ---
99
+
100
+ ## 🐛 Common Issues & Fixes
101
+
102
+ ### Issue 1: "MCP server won't start manually"
103
+
104
+ **Symptoms:**
105
+ ```bash
106
+ $ python3 ~/.claude-memory/mcp_server.py
107
+ Error: Could not import SuperLocalMemory modules
108
+ ```
109
+
110
+ **Diagnosis:**
111
+ ```bash
112
+ # Check if files exist
113
+ ls -la ~/.claude-memory/mcp_server.py
114
+ ls -la ~/.claude-memory/memory_store_v2.py
115
+ ls -la ~/.claude-memory/graph_engine.py
116
+ ls -la ~/.claude-memory/pattern_learner.py
117
+ ```
118
+
119
+ **Fix:**
120
+ 1. Verify installation:
121
+ ```bash
122
+ cd ~/path/to/SuperLocalMemoryV2
123
+ ./install.sh
124
+ ```
125
+
126
+ 2. Check permissions:
127
+ ```bash
128
+ chmod +x ~/.claude-memory/mcp_server.py
129
+ chmod +x ~/.claude-memory/*.py
130
+ ```
131
+
132
+ 3. Test imports:
133
+ ```bash
134
+ cd ~/.claude-memory
135
+ python3 -c "from memory_store_v2 import MemoryStoreV2"
136
+ ```
137
+
138
+ ---
139
+
140
+ ### Issue 2: "ModuleNotFoundError: No module named 'mcp'"
141
+
142
+ **Symptoms:**
143
+ - Server crashes on startup
144
+ - Import error in logs
145
+ - "mcp" module not found
146
+
147
+ **Diagnosis:**
148
+ ```bash
149
+ python3 -c "import mcp"
150
+ # If this errors, mcp package not installed
151
+ ```
152
+
153
+ **Fix:**
154
+ ```bash
155
+ # Install MCP package
156
+ pip3 install mcp
157
+
158
+ # Or if using conda:
159
+ conda install -c conda-forge mcp
160
+
161
+ # Or if system Python (macOS):
162
+ python3 -m pip install --user mcp
163
+ ```
164
+
165
+ **Verify:**
166
+ ```bash
167
+ python3 -c "import mcp; print(mcp.__version__)"
168
+ # Should print version number (e.g., 1.26.0)
169
+ ```
170
+
171
+ ---
172
+
173
+ ### Issue 3: "Python not found" or wrong Python
174
+
175
+ **Symptoms:**
176
+ - "command not found: python3"
177
+ - Server uses wrong Python version
178
+ - Import errors despite mcp being installed
179
+
180
+ **Diagnosis:**
181
+ ```bash
182
+ # Find Python installations
183
+ which python3
184
+ which python
185
+ ls -la /usr/bin/python*
186
+ ls -la /opt/homebrew/bin/python*
187
+
188
+ # Check where mcp is installed
189
+ python3 -c "import mcp; print(mcp.__file__)"
190
+ ```
191
+
192
+ **Fix:**
193
+
194
+ **Option A: Use full Python path in config**
195
+ ```json
196
+ {
197
+ "mcpServers": {
198
+ "superlocalmemory-v2": {
199
+ "command": "/opt/homebrew/bin/python3", // Full path
200
+ "args": ["/Users/username/.claude-memory/mcp_server.py"]
201
+ }
202
+ }
203
+ }
204
+ ```
205
+
206
+ **Option B: Fix PATH (if using conda)**
207
+ 1. Find conda Python:
208
+ ```bash
209
+ conda info --base
210
+ # Example: /opt/homebrew/Caskroom/miniforge/base
211
+ ```
212
+
213
+ 2. Update config:
214
+ ```json
215
+ {
216
+ "command": "/opt/homebrew/Caskroom/miniforge/base/bin/python3"
217
+ }
218
+ ```
219
+
220
+ **Option C: Install mcp in correct Python**
221
+ ```bash
222
+ # Use the SAME Python your IDE will use
223
+ /path/to/your/python3 -m pip install mcp
224
+ ```
225
+
226
+ ---
227
+
228
+ ### Issue 4: IDE doesn't show MCP tools after restart
229
+
230
+ **Symptoms:**
231
+ - Config looks correct
232
+ - Server starts manually
233
+ - But IDE shows no tools
234
+
235
+ **Fix:**
236
+
237
+ **1. Complete restart (not just reload):**
238
+ - **macOS:** Cmd+Q (quit completely), then reopen
239
+ - **Windows/Linux:** Close ALL windows, reopen from scratch
240
+
241
+ **2. Check missing fields:**
242
+
243
+ Most common mistake - missing `cwd` or `PYTHONPATH`:
244
+ ```json
245
+ {
246
+ "mcpServers": {
247
+ "superlocalmemory-v2": {
248
+ "command": "python3",
249
+ "args": ["/Users/username/.claude-memory/mcp_server.py"],
250
+ "cwd": "/Users/username/.claude-memory", // REQUIRED
251
+ "env": {
252
+ "PYTHONPATH": "/Users/username/.claude-memory" // REQUIRED
253
+ }
254
+ }
255
+ }
256
+ }
257
+ ```
258
+
259
+ **3. Check IDE logs:**
260
+
261
+ | IDE | Where to find logs |
262
+ |-----|-------------------|
263
+ | **Cursor** | Help → Show Logs → Search for "mcp" |
264
+ | **Claude Desktop** | View → Developer → Toggle Developer Tools → Console |
265
+ | **VS Code** | Output panel → Select "MCP" from dropdown |
266
+ | **Zed** | View logs in `~/.config/zed/logs/` |
267
+
268
+ **4. Verify file paths are absolute:**
269
+ ```json
270
+ // ❌ WRONG (relative path)
271
+ "args": ["mcp_server.py"]
272
+
273
+ // ✅ CORRECT (absolute path)
274
+ "args": ["/Users/username/.claude-memory/mcp_server.py"]
275
+ ```
276
+
277
+ ---
278
+
279
+ ### Issue 5: "Cannot import SuperLocalMemory modules"
280
+
281
+ **Symptoms:**
282
+ - MCP server starts
283
+ - Tools appear in IDE
284
+ - But crash on first tool call
285
+ - Error: "ModuleNotFoundError: No module named 'memory_store_v2'"
286
+
287
+ **Diagnosis:**
288
+ ```bash
289
+ cd ~/.claude-memory
290
+ python3 -c "from memory_store_v2 import MemoryStoreV2"
291
+ # Should work without error
292
+
293
+ # Check if files exist
294
+ ls -la ~/.claude-memory/*.py
295
+ ```
296
+
297
+ **Fix:**
298
+
299
+ **If files missing:**
300
+ ```bash
301
+ cd ~/path/to/SuperLocalMemoryV2-repo
302
+ ./install.sh
303
+ ```
304
+
305
+ **If files exist but import fails:**
306
+
307
+ Add `PYTHONPATH` to config (if missing):
308
+ ```json
309
+ {
310
+ "env": {
311
+ "PYTHONPATH": "/Users/username/.claude-memory"
312
+ },
313
+ "cwd": "/Users/username/.claude-memory"
314
+ }
315
+ ```
316
+
317
+ **Verify with test:**
318
+ ```bash
319
+ cd ~/.claude-memory
320
+ PYTHONPATH=~/.claude-memory python3 -c "from memory_store_v2 import MemoryStoreV2; print('OK')"
321
+ ```
322
+
323
+ ---
324
+
325
+ ### Issue 6: Config file keeps getting overwritten
326
+
327
+ **Symptoms:**
328
+ - Manually edit config
329
+ - Run `./install.sh`
330
+ - Custom settings lost
331
+
332
+ **Solution:**
333
+
334
+ **1. Check for backups:**
335
+ ```bash
336
+ ls -la ~/.cursor/*.backup.*
337
+ ls -la ~/Library/Application\ Support/Claude/*.backup.*
338
+ ```
339
+
340
+ **2. Restore backup:**
341
+ ```bash
342
+ # Cursor
343
+ cp ~/.cursor/mcp_settings.json.backup.20260207-143000 ~/.cursor/mcp_settings.json
344
+
345
+ # Claude Desktop
346
+ cp ~/Library/Application\ Support/Claude/claude_desktop_config.json.backup.* \
347
+ ~/Library/Application\ Support/Claude/claude_desktop_config.json
348
+ ```
349
+
350
+ **3. Merge manually before reinstalling:**
351
+ ```bash
352
+ # Backup your custom config first
353
+ cp ~/.cursor/mcp_settings.json ~/.cursor/mcp_settings.json.custom
354
+
355
+ # Then merge after install.sh runs
356
+ ```
357
+
358
+ ---
359
+
360
+ ### Issue 7: Tools work but data not persisting
361
+
362
+ **Symptoms:**
363
+ - Can save memories
364
+ - But disappear after restart
365
+ - Or across different tools
366
+
367
+ **Diagnosis:**
368
+ ```bash
369
+ # Check database exists and is writable
370
+ ls -la ~/.claude-memory/memory.db
371
+
372
+ # Check it's not empty
373
+ sqlite3 ~/.claude-memory/memory.db "SELECT COUNT(*) FROM memories;"
374
+
375
+ # Check multiple tools use same database
376
+ # (They all should point to same file)
377
+ ```
378
+
379
+ **Fix:**
380
+
381
+ **1. Verify database location:**
382
+ ```bash
383
+ # All tools should use this path
384
+ ~/.claude-memory/memory.db
385
+
386
+ # NOT multiple databases like:
387
+ # ~/.cursor/memory.db ❌
388
+ # ~/.claude/memory.db ❌
389
+ ```
390
+
391
+ **2. Check write permissions:**
392
+ ```bash
393
+ ls -ld ~/.claude-memory/
394
+ # Should NOT be read-only
395
+
396
+ chmod 755 ~/.claude-memory/
397
+ chmod 644 ~/.claude-memory/memory.db
398
+ ```
399
+
400
+ **3. Check database not locked:**
401
+ ```bash
402
+ # Kill any hanging MCP servers
403
+ ps aux | grep mcp_server
404
+ kill <PID> # If any found
405
+
406
+ # Test database access
407
+ sqlite3 ~/.claude-memory/memory.db "PRAGMA integrity_check;"
408
+ # Should output: ok
409
+ ```
410
+
411
+ ---
412
+
413
+ ### Issue 8: MCP server crashes on tool call
414
+
415
+ **Symptoms:**
416
+ - Tools appear in IDE
417
+ - But crash when invoked
418
+ - Error in logs
419
+
420
+ **Diagnosis:**
421
+ ```bash
422
+ # Start server with debug output
423
+ python3 ~/.claude-memory/mcp_server.py 2>&1 | tee /tmp/mcp-debug.log
424
+
425
+ # In another terminal, try to trigger crash
426
+ # Then check log:
427
+ cat /tmp/mcp-debug.log
428
+ ```
429
+
430
+ **Common causes:**
431
+
432
+ **1. Missing environment variable:**
433
+ ```json
434
+ {
435
+ "env": {
436
+ "PYTHONPATH": "/Users/username/.claude-memory" // Must be set
437
+ }
438
+ }
439
+ ```
440
+
441
+ **2. Wrong working directory:**
442
+ ```json
443
+ {
444
+ "cwd": "/Users/username/.claude-memory" // Must match install location
445
+ }
446
+ ```
447
+
448
+ **3. Database locked:**
449
+ ```bash
450
+ # Check for other processes
451
+ lsof ~/.claude-memory/memory.db
452
+
453
+ # Kill if needed
454
+ kill <PID>
455
+ ```
456
+
457
+ **4. Corrupted database:**
458
+ ```bash
459
+ # Check integrity
460
+ sqlite3 ~/.claude-memory/memory.db "PRAGMA integrity_check;"
461
+
462
+ # If corrupted, restore from backup
463
+ cp ~/.claude-memory/backups/memory.db.backup.* ~/.claude-memory/memory.db
464
+ ```
465
+
466
+ ---
467
+
468
+ ## 🔧 IDE-Specific Troubleshooting
469
+
470
+ ### Cursor
471
+
472
+ **Config Location:** `~/.cursor/mcp_settings.json` (NOT `mcp.json`)
473
+
474
+ **How to check:**
475
+ 1. Settings → Tools & MCP
476
+ 2. Look for "superlocalmemory-v2"
477
+ 3. Green dot = working, gray = not connected
478
+
479
+ **Common issues:**
480
+ - Wrong filename (should be `mcp_settings.json`)
481
+ - Missing `cwd` field
482
+ - Missing `env.PYTHONPATH` field
483
+
484
+ **Full working config:**
485
+ ```json
486
+ {
487
+ "mcpServers": {
488
+ "superlocalmemory-v2": {
489
+ "command": "python3",
490
+ "args": ["/Users/username/.claude-memory/mcp_server.py"],
491
+ "cwd": "/Users/username/.claude-memory",
492
+ "env": {
493
+ "PYTHONPATH": "/Users/username/.claude-memory"
494
+ },
495
+ "description": "SuperLocalMemory V2"
496
+ }
497
+ }
498
+ }
499
+ ```
500
+
501
+ **Test manually:**
502
+ ```bash
503
+ cd ~/.cursor
504
+ cat mcp_settings.json | python3 -m json.tool
505
+ # Should be valid JSON
506
+ ```
507
+
508
+ ---
509
+
510
+ ### Claude Desktop
511
+
512
+ **Config Location:**
513
+ - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
514
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
515
+ - Linux: `~/.config/Claude/claude_desktop_config.json`
516
+
517
+ **How to check:**
518
+ 1. Settings → Developer → "Edit Config"
519
+ 2. Look for "superlocalmemory-v2" section
520
+
521
+ **Common issues:**
522
+ - Spaces in path not escaped
523
+ - JSON syntax errors (missing commas, quotes)
524
+
525
+ **Test:**
526
+ ```bash
527
+ # macOS
528
+ cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python3 -m json.tool
529
+ ```
530
+
531
+ ---
532
+
533
+ ### VS Code
534
+
535
+ **Config Location:** Accessed via command, NOT a direct file path
536
+
537
+ **How to access:**
538
+ 1. Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux)
539
+ 2. Type: "MCP: Open User Configuration"
540
+ 3. Edit JSON
541
+
542
+ **Important:** VS Code uses `servers` object, NOT `mcpServers`:
543
+ ```json
544
+ {
545
+ "servers": { // NOT "mcpServers"
546
+ "superlocalmemory-v2": {
547
+ "type": "stdio",
548
+ "command": "python3",
549
+ "args": ["/Users/username/.claude-memory/mcp_server.py"]
550
+ }
551
+ }
552
+ }
553
+ ```
554
+
555
+ **Logs:**
556
+ Output panel → Select "MCP" from dropdown
557
+
558
+ ---
559
+
560
+ ### Zed Editor
561
+
562
+ **Config Location:** `~/.config/zed/settings.json`
563
+
564
+ **Format:** Merged into existing settings under `context_servers`:
565
+ ```json
566
+ {
567
+ "context_servers": {
568
+ "superlocalmemory-v2": {
569
+ "source": "custom", // Required
570
+ "command": "python3",
571
+ "args": ["/Users/username/.claude-memory/mcp_server.py"],
572
+ "env": {
573
+ "PYTHONPATH": "/Users/username/.claude-memory"
574
+ }
575
+ }
576
+ },
577
+ // ... other Zed settings
578
+ }
579
+ ```
580
+
581
+ **How to check:**
582
+ 1. Open Agent Panel
583
+ 2. Click settings gear
584
+ 3. Look for green indicator dot
585
+
586
+ **Common issues:**
587
+ - Missing `"source": "custom"` field (required for Zed)
588
+ - Config not merged properly into existing settings.json
589
+
590
+ ---
591
+
592
+ ### JetBrains IDEs (IntelliJ, PyCharm, WebStorm)
593
+
594
+ **Config Location:** Via IDE settings (not file)
595
+
596
+ **How to access:**
597
+ 1. Settings → Tools → AI Assistant → Model Context Protocol (MCP)
598
+ 2. Or: Settings → Tools → MCP Server
599
+
600
+ **Requirements:**
601
+ - IntelliJ IDEA 2025.1+ (as MCP client)
602
+ - JetBrains IDE 2025.2+ (as MCP server)
603
+ - AI Assistant plugin 251.26094.80.5+
604
+
605
+ **Common issues:**
606
+ - Old IDE version (update to 2025.1+)
607
+ - AI Assistant plugin not installed
608
+ - MCP feature not enabled in settings
609
+
610
+ ---
611
+
612
+ ### ChatGPT Desktop
613
+
614
+ **Config Location:** Via app settings (not file)
615
+
616
+ **How to access:**
617
+ 1. Settings → Advanced → Developer Mode
618
+ 2. Enable "Developer mode"
619
+ 3. Settings → Connectors → MCP
620
+ 4. Add server configuration
621
+
622
+ **Requirements:**
623
+ - ChatGPT Desktop latest version (January 2026+)
624
+ - ChatGPT Pro, Plus, Business, Enterprise, or Edu plan
625
+
626
+ **Common issues:**
627
+ - Old app version (update to latest)
628
+ - Developer mode not enabled
629
+ - Plan doesn't support MCP (need Pro/Plus minimum)
630
+
631
+ ---
632
+
633
+ ### OpenCode
634
+
635
+ **Config Location:** `~/.config/opencode/opencode.json`
636
+
637
+ **Format:**
638
+ ```json
639
+ {
640
+ "mcp": { // Note: "mcp" not "mcpServers"
641
+ "superlocalmemory-v2": {
642
+ "command": "python3",
643
+ "args": ["/Users/username/.claude-memory/mcp_server.py"],
644
+ "env": {
645
+ "PYTHONPATH": "/Users/username/.claude-memory"
646
+ },
647
+ "cwd": "/Users/username/.claude-memory"
648
+ }
649
+ }
650
+ }
651
+ ```
652
+
653
+ **Common issues:**
654
+ - Using `mcpServers` instead of `mcp`
655
+ - Missing OAuth tokens (if using remote servers)
656
+
657
+ ---
658
+
659
+ ### Google Antigravity
660
+
661
+ **Config Location:** `~/.gemini/antigravity/mcp_config.json`
662
+
663
+ **How to access:**
664
+ 1. Click Agent session
665
+ 2. Select "..." dropdown in editor side panel
666
+ 3. Select "MCP Servers" → "Manage MCP Servers"
667
+ 4. Click "View raw config"
668
+
669
+ **Limitations:**
670
+ - Maximum ~50-80 tools across ALL servers
671
+ - May conflict with Gemini CLI (both use `~/.gemini/`)
672
+
673
+ **Common issues:**
674
+ - Too many servers (>50-80 tools total)
675
+ - Conflict with Gemini CLI configuration
676
+
677
+ ---
678
+
679
+ ## 🛠️ Manual Configuration (Last Resort)
680
+
681
+ If auto-configuration fails completely, manually add to your IDE's config:
682
+
683
+ ```json
684
+ {
685
+ "mcpServers": {
686
+ "superlocalmemory-v2": {
687
+ "command": "/full/path/to/python3",
688
+ "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
689
+ "cwd": "/Users/yourusername/.claude-memory",
690
+ "env": {
691
+ "PYTHONPATH": "/Users/yourusername/.claude-memory"
692
+ },
693
+ "description": "SuperLocalMemory V2"
694
+ }
695
+ }
696
+ }
697
+ ```
698
+
699
+ **Steps:**
700
+ 1. Find Python: `which python3`
701
+ 2. Find install dir: `echo ~/.claude-memory`
702
+ 3. Replace paths above with YOUR actual paths
703
+ 4. Validate JSON: `cat config.json | python3 -m json.tool`
704
+ 5. Restart IDE completely
705
+ 6. Check logs for errors
706
+
707
+ ---
708
+
709
+ ## 📞 Getting Help
710
+
711
+ ### Before Opening an Issue
712
+
713
+ 1. ✅ **Check logs** (see IDE-specific sections)
714
+ 2. ✅ **Test server manually:** `python3 ~/.claude-memory/mcp_server.py`
715
+ 3. ✅ **Verify config is valid JSON**
716
+ 4. ✅ **Try manual configuration** (see above)
717
+ 5. ✅ **Search existing issues:** https://github.com/varun369/SuperLocalMemoryV2/issues
718
+
719
+ ### Opening an Issue
720
+
721
+ **Include this information:**
722
+ - **IDE/Tool:** Name and version (e.g., "Cursor 0.42.3")
723
+ - **OS:** macOS 14.2, Windows 11, Ubuntu 22.04, etc.
724
+ - **Python:** Output of `python3 --version`
725
+ - **Config file:** Contents (redact sensitive paths if needed)
726
+ - **Error message:** Exact error from logs
727
+ - **Manual test:** Output of `python3 ~/.claude-memory/mcp_server.py`
728
+ - **What you tried:** List troubleshooting steps already attempted
729
+
730
+ **Template:**
731
+ ```markdown
732
+ **IDE/Tool:** Cursor 0.42.3
733
+ **OS:** macOS 14.2
734
+ **Python:** 3.11.7
735
+
736
+ **Issue:** MCP server doesn't appear in Tools & MCP settings
737
+
738
+ **Config file:**
739
+ [paste config here]
740
+
741
+ **Manual test:**
742
+ $ python3 ~/.claude-memory/mcp_server.py
743
+ [paste output here]
744
+
745
+ **What I tried:**
746
+ - Complete restart of IDE
747
+ - Verified JSON is valid
748
+ - Checked cwd and PYTHONPATH fields
749
+ - Installed mcp package
750
+ ```
751
+
752
+ ---
753
+
754
+ ## 🎯 Quick Reference
755
+
756
+ ### Most Common Causes (Fix These First)
757
+
758
+ 1. **Wrong Python path** → Use full path in config
759
+ 2. **Missing `cwd` field** → Add to config
760
+ 3. **Missing `PYTHONPATH`** → Add to env section
761
+ 4. **Didn't completely restart IDE** → Cmd+Q and reopen
762
+ 5. **MCP package not installed** → `pip3 install mcp`
763
+ 6. **Wrong config file location** → Check IDE-specific section
764
+ 7. **JSON syntax errors** → Validate with `python3 -m json.tool`
765
+ 8. **Relative paths instead of absolute** → Use full paths
766
+
767
+ ### Verification Checklist
768
+
769
+ - [ ] Server starts manually without errors
770
+ - [ ] Config file is valid JSON
771
+ - [ ] Config has `cwd` field
772
+ - [ ] Config has `env.PYTHONPATH` field
773
+ - [ ] All paths are absolute (not relative)
774
+ - [ ] Python path is correct for your system
775
+ - [ ] MCP package is installed
776
+ - [ ] IDE completely restarted (not just reloaded)
777
+ - [ ] Server appears in IDE's MCP settings
778
+ - [ ] Database file exists and is writable
779
+
780
+ ---
781
+
782
+ **Most issues resolve by:**
783
+ 1. Using full Python path
784
+ 2. Adding `cwd` and `PYTHONPATH`
785
+ 3. Completely restarting IDE
786
+
787
+ **Still stuck? Open an issue with full details above.** 🚀