superlocalmemory 3.4.16 → 3.4.18

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 (83) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -3
  3. package/pyproject.toml +10 -1
  4. package/src/superlocalmemory/cli/setup_wizard.py +30 -0
  5. package/src/superlocalmemory/server/routes/entity.py +5 -9
  6. package/src/superlocalmemory/server/routes/helpers.py +120 -15
  7. package/src/superlocalmemory/server/routes/ingest.py +2 -3
  8. package/src/superlocalmemory/server/routes/v3_api.py +42 -2
  9. package/src/superlocalmemory/server/unified_daemon.py +21 -11
  10. package/src/superlocalmemory.egg-info/PKG-INFO +5 -2
  11. package/src/superlocalmemory.egg-info/requires.txt +3 -0
  12. package/docs/ARCHITECTURE.md +0 -149
  13. package/docs/api-reference.md +0 -284
  14. package/docs/auto-memory.md +0 -150
  15. package/docs/cli-reference.md +0 -327
  16. package/docs/cloud-backup.md +0 -174
  17. package/docs/compliance.md +0 -191
  18. package/docs/configuration.md +0 -182
  19. package/docs/getting-started.md +0 -102
  20. package/docs/ide-setup.md +0 -261
  21. package/docs/mcp-tools.md +0 -220
  22. package/docs/migration-from-v2.md +0 -170
  23. package/docs/profiles.md +0 -173
  24. package/docs/screenshots/01-dashboard-main.png +0 -0
  25. package/docs/screenshots/02-knowledge-graph.png +0 -0
  26. package/docs/screenshots/03-math-health.png +0 -0
  27. package/docs/screenshots/03-patterns-learning.png +0 -0
  28. package/docs/screenshots/04-learning-dashboard.png +0 -0
  29. package/docs/screenshots/04-recall-lab.png +0 -0
  30. package/docs/screenshots/05-behavioral-analysis.png +0 -0
  31. package/docs/screenshots/05-trust-dashboard.png +0 -0
  32. package/docs/screenshots/06-graph-communities.png +0 -0
  33. package/docs/screenshots/06-settings.png +0 -0
  34. package/docs/screenshots/07-memories-blurred.png +0 -0
  35. package/docs/skill-evolution.md +0 -256
  36. package/docs/troubleshooting.md +0 -310
  37. package/docs/v2-archive/ACCESSIBILITY.md +0 -291
  38. package/docs/v2-archive/ARCHITECTURE.md +0 -886
  39. package/docs/v2-archive/CLI-COMMANDS-REFERENCE.md +0 -425
  40. package/docs/v2-archive/COMPRESSION-README.md +0 -390
  41. package/docs/v2-archive/FRAMEWORK-INTEGRATIONS.md +0 -300
  42. package/docs/v2-archive/MCP-MANUAL-SETUP.md +0 -775
  43. package/docs/v2-archive/MCP-TROUBLESHOOTING.md +0 -787
  44. package/docs/v2-archive/PATTERN-LEARNING.md +0 -228
  45. package/docs/v2-archive/PROFILES-GUIDE.md +0 -453
  46. package/docs/v2-archive/RESET-GUIDE.md +0 -353
  47. package/docs/v2-archive/SEARCH-ENGINE-V2.2.0.md +0 -749
  48. package/docs/v2-archive/SEARCH-INTEGRATION-GUIDE.md +0 -502
  49. package/docs/v2-archive/UI-SERVER.md +0 -262
  50. package/docs/v2-archive/UNIVERSAL-INTEGRATION.md +0 -488
  51. package/docs/v2-archive/V2.2.0-OPTIONAL-SEARCH.md +0 -666
  52. package/docs/v2-archive/WINDOWS-INSTALL-README.txt +0 -34
  53. package/docs/v2-archive/WINDOWS-POST-INSTALL.txt +0 -45
  54. package/docs/v2-archive/example_graph_usage.py +0 -146
  55. package/ui/index.html +0 -1879
  56. package/ui/js/agents.js +0 -192
  57. package/ui/js/auto-settings.js +0 -399
  58. package/ui/js/behavioral.js +0 -276
  59. package/ui/js/clusters.js +0 -206
  60. package/ui/js/compliance.js +0 -252
  61. package/ui/js/core.js +0 -246
  62. package/ui/js/dashboard.js +0 -110
  63. package/ui/js/events.js +0 -178
  64. package/ui/js/fact-detail.js +0 -92
  65. package/ui/js/feedback.js +0 -333
  66. package/ui/js/graph-core.js +0 -447
  67. package/ui/js/graph-filters.js +0 -220
  68. package/ui/js/graph-interactions.js +0 -351
  69. package/ui/js/graph-ui.js +0 -214
  70. package/ui/js/ide-status.js +0 -102
  71. package/ui/js/init.js +0 -45
  72. package/ui/js/learning.js +0 -435
  73. package/ui/js/lifecycle.js +0 -298
  74. package/ui/js/math-health.js +0 -98
  75. package/ui/js/memories.js +0 -264
  76. package/ui/js/modal.js +0 -357
  77. package/ui/js/patterns.js +0 -93
  78. package/ui/js/profiles.js +0 -236
  79. package/ui/js/recall-lab.js +0 -292
  80. package/ui/js/search.js +0 -59
  81. package/ui/js/settings.js +0 -224
  82. package/ui/js/timeline.js +0 -32
  83. package/ui/js/trust-dashboard.js +0 -73
@@ -1,775 +0,0 @@
1
- # SuperLocalMemory V2 - Manual MCP Setup Guide
2
-
3
- This guide shows how to manually add SuperLocalMemory V2 as an MCP server in various applications and tools.
4
-
5
- **Auto-configured by install.sh / npm install:**
6
- - ✅ Claude Desktop, Cursor, Windsurf, Continue.dev
7
- - ✅ OpenAI Codex CLI, VS Code/Copilot, Zed, OpenCode
8
- - ✅ Antigravity, Perplexity, Gemini CLI
9
- - ⚠️ ChatGPT (HTTP transport — run `slm serve`, see below)
10
- - ⚠️ JetBrains (manual GUI setup — see below)
11
- - ⚠️ Cody (manual setup — see below)
12
-
13
- For tools marked ⚠️, follow the manual setup instructions below.
14
-
15
- ---
16
-
17
- ## Table of Contents
18
-
19
- 1. [Prerequisites](#prerequisites)
20
- 2. [Configuration Template](#configuration-template)
21
- 3. [IDE/App Specific Setup](#ideapp-specific-setup)
22
- - [Claude Desktop](#claude-desktop)
23
- - [Cursor](#cursor)
24
- - [Windsurf](#windsurf)
25
- - [Continue.dev (VS Code)](#continuedev-vs-code)
26
- - [OpenAI Codex CLI](#openai-codex-cli)
27
- - [VS Code / GitHub Copilot](#vs-code--github-copilot)
28
- - [Gemini CLI](#gemini-cli)
29
- - [JetBrains IDEs](#jetbrains-ides)
30
- - [Cody (VS Code/JetBrains)](#cody-vs-codejetbrains)
31
- - [ChatGPT Desktop App](#chatgpt-desktop-app)
32
- - [Perplexity](#perplexity)
33
- - [Zed Editor](#zed-editor)
34
- - [HTTP Transport (Remote Access)](#http-transport-remote-access)
35
- - [Custom MCP Clients](#custom-mcp-clients)
36
- 4. [Troubleshooting](#troubleshooting)
37
- 5. [Verification](#verification)
38
-
39
- ---
40
-
41
- ## Prerequisites
42
-
43
- 1. **SuperLocalMemory V2 installed:**
44
- ```bash
45
- ./install.sh
46
- ```
47
-
48
- 2. **MCP Python package installed:**
49
- ```bash
50
- pip3 install mcp
51
- ```
52
-
53
- 3. **Know your Python path:**
54
- ```bash
55
- which python3
56
- # Output: /usr/bin/python3 or /opt/homebrew/bin/python3 or similar
57
- ```
58
-
59
- 4. **Know your install directory:**
60
- ```bash
61
- echo ~/.superlocalmemory
62
- # Default: /Users/yourusername/.claude-memory
63
- ```
64
-
65
- ---
66
-
67
- ## Configuration Template
68
-
69
- This is the base MCP configuration that works across all tools:
70
-
71
- ```json
72
- {
73
- "mcpServers": {
74
- "superlocalmemory-v2": {
75
- "command": "python3",
76
- "args": [
77
- "/Users/yourusername/.claude-memory/mcp_server.py"
78
- ],
79
- "cwd": "/Users/yourusername/.claude-memory",
80
- "env": {
81
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
82
- },
83
- "description": "SuperLocalMemory V2 - 100% local memory system"
84
- }
85
- }
86
- }
87
- ```
88
-
89
- **Replace `/Users/yourusername/.claude-memory` with your actual install path.**
90
-
91
- ---
92
-
93
- ## IDE/App Specific Setup
94
-
95
- ### Claude Desktop
96
-
97
- **Configuration File:** `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
98
- **Configuration File:** `%APPDATA%\Claude\claude_desktop_config.json` (Windows)
99
- **Configuration File:** `~/.config/Claude/claude_desktop_config.json` (Linux)
100
-
101
- **Steps:**
102
-
103
- 1. Open Claude Desktop settings or directly edit the config file
104
- 2. Add the MCP server configuration:
105
-
106
- ```json
107
- {
108
- "mcpServers": {
109
- "superlocalmemory-v2": {
110
- "command": "python3",
111
- "args": [
112
- "/Users/yourusername/.claude-memory/mcp_server.py"
113
- ],
114
- "cwd": "/Users/yourusername/.claude-memory",
115
- "env": {
116
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
117
- },
118
- "description": "SuperLocalMemory V2 - Local memory system"
119
- }
120
- }
121
- }
122
- ```
123
-
124
- 3. **Restart Claude Desktop completely**
125
- 4. Verify: Look for "superlocalmemory-v2" in available tools
126
-
127
- **Auto-configured by install.sh:** ✅ Yes
128
-
129
- ---
130
-
131
- ### Cursor
132
-
133
- **Configuration File:** `~/.cursor/mcp_settings.json` (macOS/Linux)
134
- **Configuration File:** `%USERPROFILE%\.cursor\mcp_settings.json` (Windows)
135
-
136
- **Steps:**
137
-
138
- 1. Create or edit `~/.cursor/mcp_settings.json`:
139
-
140
- ```json
141
- {
142
- "mcpServers": {
143
- "superlocalmemory-v2": {
144
- "command": "python3",
145
- "args": [
146
- "/Users/yourusername/.claude-memory/mcp_server.py"
147
- ],
148
- "cwd": "/Users/yourusername/.claude-memory",
149
- "env": {
150
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
151
- },
152
- "description": "SuperLocalMemory V2"
153
- }
154
- }
155
- }
156
- ```
157
-
158
- 2. **Completely quit Cursor (Cmd+Q on macOS)** and reopen
159
- 3. Go to Settings → Tools & MCP
160
- 4. Verify "superlocalmemory-v2" shows with green indicator
161
-
162
- **Auto-configured by install.sh:** ✅ Yes
163
-
164
- ---
165
-
166
- ### Windsurf
167
-
168
- **Configuration File:** `~/.windsurf/mcp_settings.json` (macOS/Linux)
169
- **Configuration File:** `%USERPROFILE%\.windsurf\mcp_settings.json` (Windows)
170
-
171
- **Steps:**
172
-
173
- 1. Create or edit `~/.windsurf/mcp_settings.json`:
174
-
175
- ```json
176
- {
177
- "mcpServers": {
178
- "superlocalmemory-v2": {
179
- "command": "python3",
180
- "args": [
181
- "/Users/yourusername/.claude-memory/mcp_server.py"
182
- ],
183
- "cwd": "/Users/yourusername/.claude-memory",
184
- "env": {
185
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
186
- },
187
- "transport": "stdio",
188
- "description": "SuperLocalMemory V2"
189
- }
190
- }
191
- }
192
- ```
193
-
194
- 2. Restart Windsurf
195
- 3. Check MCP servers in settings
196
-
197
- **Auto-configured by install.sh:** ✅ Yes
198
-
199
- ---
200
-
201
- ### Continue.dev (VS Code)
202
-
203
- **Configuration File:** `~/.continue/config.yaml` (macOS/Linux)
204
- **Configuration File:** `%USERPROFILE%\.continue\config.yaml` (Windows)
205
-
206
- **Steps:**
207
-
208
- 1. Open VS Code → Continue extension settings
209
- 2. Or edit `~/.continue/config.yaml` directly:
210
-
211
- ```yaml
212
- mcpServers:
213
- - name: superlocalmemory-v2
214
- command: python3
215
- args:
216
- - /Users/yourusername/.claude-memory/mcp_server.py
217
- cwd: /Users/yourusername/.claude-memory
218
- env:
219
- PYTHONPATH: /Users/yourusername/.claude-memory
220
- description: SuperLocalMemory V2 - Local memory system
221
- ```
222
-
223
- 3. Reload VS Code window (Cmd+Shift+P → Reload Window)
224
- 4. Verify in Continue extension panel
225
-
226
- **Auto-configured by install.sh:** ✅ Partial (manual merge if config exists)
227
-
228
- ---
229
-
230
- ### OpenAI Codex CLI
231
-
232
- **Configuration File:** `~/.codex/config.toml`
233
- **Format:** TOML (not JSON)
234
-
235
- **Method 1 — CLI command (preferred):**
236
-
237
- ```bash
238
- codex mcp add superlocalmemory-v2 \
239
- --env "PYTHONPATH=/Users/yourusername/.claude-memory" \
240
- -- python3 /Users/yourusername/.claude-memory/mcp_server.py
241
- ```
242
-
243
- **Method 2 — Manual TOML config:**
244
-
245
- Add to `~/.codex/config.toml`:
246
-
247
- ```toml
248
- [mcp_servers.superlocalmemory-v2]
249
- command = "python3"
250
- args = ["/Users/yourusername/.claude-memory/mcp_server.py"]
251
-
252
- [mcp_servers.superlocalmemory-v2.env]
253
- PYTHONPATH = "/Users/yourusername/.claude-memory"
254
- ```
255
-
256
- **Verify:** `codex mcp list` should show `superlocalmemory-v2`
257
-
258
- **Auto-configured by install.sh:** ✅ Yes
259
-
260
- ---
261
-
262
- ### VS Code / GitHub Copilot
263
-
264
- **Configuration File:** `~/.vscode/mcp.json` (user-level) or `.vscode/mcp.json` (workspace-level)
265
-
266
- **Important:** VS Code uses `"servers"` (not `"mcpServers"`) and requires `"type": "stdio"`.
267
-
268
- **Steps:**
269
-
270
- 1. Create or edit `~/.vscode/mcp.json`:
271
-
272
- ```json
273
- {
274
- "servers": {
275
- "superlocalmemory-v2": {
276
- "type": "stdio",
277
- "command": "python3",
278
- "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
279
- "env": {
280
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
281
- }
282
- }
283
- }
284
- }
285
- ```
286
-
287
- 2. Restart VS Code
288
- 3. Copilot Chat should now have access to SuperLocalMemory tools
289
-
290
- **Auto-configured by install.sh:** ✅ Yes
291
-
292
- ---
293
-
294
- ### Gemini CLI
295
-
296
- **Configuration File:** `~/.gemini/settings.json`
297
-
298
- **Steps:**
299
-
300
- 1. Create or edit `~/.gemini/settings.json`:
301
-
302
- ```json
303
- {
304
- "mcpServers": {
305
- "superlocalmemory-v2": {
306
- "command": "python3",
307
- "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
308
- "env": {
309
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
310
- }
311
- }
312
- }
313
- }
314
- ```
315
-
316
- 2. Restart Gemini CLI
317
- 3. Memory tools will be available in conversations
318
-
319
- **Auto-configured by install.sh:** ✅ Yes
320
-
321
- ---
322
-
323
- ### JetBrains IDEs
324
-
325
- **Supported:** IntelliJ IDEA, PyCharm, WebStorm, GoLand, and all JetBrains IDEs with AI Assistant (2025.2+)
326
-
327
- **Steps (GUI-based):**
328
-
329
- 1. Open your JetBrains IDE
330
- 2. Go to **Settings → AI Assistant → MCP Servers**
331
- 3. Click **"+"** to add a new server
332
- 4. Enter:
333
- - **Name:** `superlocalmemory-v2`
334
- - **Command:** `python3`
335
- - **Arguments:** `/Users/yourusername/.claude-memory/mcp_server.py`
336
- - **Working Directory:** `/Users/yourusername/.claude-memory`
337
- - **Environment Variables:** `PYTHONPATH=/Users/yourusername/.claude-memory`
338
- 5. Click **OK** and restart
339
-
340
- **JSON template** (for reference): See `configs/jetbrains-mcp.json`
341
-
342
- ```json
343
- {
344
- "mcpServers": {
345
- "superlocalmemory-v2": {
346
- "command": "python3",
347
- "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
348
- "env": {
349
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
350
- }
351
- }
352
- }
353
- }
354
- ```
355
-
356
- **Auto-configured by install.sh:** ❌ No (manual GUI setup required)
357
-
358
- ---
359
-
360
- ### Cody (VS Code/JetBrains)
361
-
362
- **Configuration:** Via VS Code settings or IDE settings
363
-
364
- **Steps:**
365
-
366
- 1. Open VS Code → Settings → Extensions → Cody
367
- 2. Look for "MCP Servers" or "External Tools" section
368
- 3. Add server configuration:
369
-
370
- ```json
371
- {
372
- "cody.mcpServers": [
373
- {
374
- "name": "superlocalmemory-v2",
375
- "command": "python3",
376
- "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
377
- "cwd": "/Users/yourusername/.claude-memory",
378
- "env": {
379
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
380
- }
381
- }
382
- ]
383
- }
384
- ```
385
-
386
- 4. Restart VS Code
387
- 5. Check Cody status bar for connected MCP servers
388
-
389
- **Auto-configured by install.sh:** ❌ No (manual setup required)
390
-
391
- ---
392
-
393
- ### ChatGPT Desktop App / ChatGPT Connectors
394
-
395
- **Important:** ChatGPT requires HTTP transport, not stdio. You need to run a local HTTP server and expose it via a tunnel. As of v2.3.5, SuperLocalMemory includes `search(query)` and `fetch(id)` MCP tools required by OpenAI's MCP spec for ChatGPT Connectors and Deep Research.
396
-
397
- **Requirements:**
398
- - ChatGPT Plus, Team, or Enterprise plan
399
- - **Developer Mode** must be enabled in ChatGPT settings
400
- - A tunnel tool: `cloudflared` (recommended, free) or `ngrok`
401
- - Reference: https://platform.openai.com/docs/mcp
402
-
403
- **Available Tools in ChatGPT:**
404
-
405
- | Tool | Purpose |
406
- |------|---------|
407
- | `search(query)` | Search memories (required by OpenAI MCP spec) |
408
- | `fetch(id)` | Fetch a specific memory by ID (required by OpenAI MCP spec) |
409
- | `remember(content, tags, project)` | Save a new memory |
410
- | `recall(query, limit)` | Search memories with full options |
411
-
412
- **Step-by-Step Setup:**
413
-
414
- 1. **Start the MCP HTTP server:**
415
- ```bash
416
- slm serve --port 8417
417
- # or with streamable-http transport (ChatGPT 2026+):
418
- slm serve --port 8417 --transport streamable-http
419
- # or using Python directly:
420
- python3 ~/.superlocalmemory/mcp_server.py --transport http --port 8417
421
- ```
422
-
423
- 2. **Expose via cloudflared tunnel** (in another terminal):
424
- ```bash
425
- # Install cloudflared (if not installed)
426
- # macOS: brew install cloudflared
427
- # Linux: sudo apt install cloudflared
428
-
429
- cloudflared tunnel --url http://localhost:8417
430
- ```
431
- Cloudflared will output a URL like `https://random-name.trycloudflare.com`
432
-
433
- **Alternative — ngrok:**
434
- ```bash
435
- ngrok http 8417
436
- ```
437
-
438
- 3. **Copy the HTTPS URL** from cloudflared/ngrok output
439
-
440
- 4. **Add to ChatGPT as a Connector:**
441
- - Open ChatGPT (desktop or web)
442
- - Go to **Settings → Connectors** (or **Settings → Apps & Connectors → Developer Mode**)
443
- - Click **"Add Connector"**
444
- - Paste the HTTPS URL with the `/sse/` suffix:
445
- ```
446
- https://random-name.trycloudflare.com/sse/
447
- ```
448
- - Name it: `SuperLocalMemory`
449
- - Click **Save**
450
-
451
- 5. **Verify in a new chat:**
452
- - Start a new conversation in ChatGPT
453
- - Look for the SuperLocalMemory connector in the tool selector
454
- - Try: "Search my memories for authentication decisions"
455
- - ChatGPT will call `search()` and return your local memories
456
-
457
- **Important Notes:**
458
- - The `/sse/` suffix on the URL is **required** by ChatGPT's MCP implementation
459
- - 100% local — your MCP server runs on YOUR machine. The tunnel just makes it reachable by ChatGPT. Your data is served on demand and never stored by OpenAI beyond the conversation.
460
- - The tunnel URL changes each time you restart cloudflared (unless you set up a named tunnel)
461
- - For persistent URLs, configure a cloudflared named tunnel: `cloudflared tunnel create slm`
462
-
463
- **Auto-configured by install.sh:** ❌ No (requires HTTP transport + tunnel)
464
-
465
- ---
466
-
467
- ### Perplexity
468
-
469
- **Note:** Perplexity AI may support MCP integration via their developer settings.
470
-
471
- **Steps:**
472
-
473
- 1. Open Perplexity app
474
- 2. Go to **Settings → Integrations** or **Settings → Developer**
475
- 3. Look for **"Custom MCP Servers"** or **"External Tools"**
476
- 4. Add configuration:
477
-
478
- ```json
479
- {
480
- "name": "SuperLocalMemory V2",
481
- "command": "python3",
482
- "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
483
- "cwd": "/Users/yourusername/.claude-memory",
484
- "env": {
485
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
486
- }
487
- }
488
- ```
489
-
490
- 5. Save and restart Perplexity
491
- 6. Check if MCP tools appear in conversation context
492
-
493
- **Auto-configured by install.sh:** ❌ No (manual setup via app settings)
494
-
495
- **Note:** MCP support in Perplexity may vary by version. Check their documentation.
496
-
497
- ---
498
-
499
- ### Zed Editor
500
-
501
- **Configuration File:** `~/.config/zed/settings.json`
502
-
503
- **Steps:**
504
-
505
- 1. Open Zed → Settings (Cmd+,)
506
- 2. Click "Open Settings File" (JSON editor)
507
- 3. Add MCP server configuration:
508
-
509
- ```json
510
- {
511
- "assistant": {
512
- "mcpServers": {
513
- "superlocalmemory-v2": {
514
- "command": "python3",
515
- "args": ["/Users/yourusername/.claude-memory/mcp_server.py"],
516
- "cwd": "/Users/yourusername/.claude-memory",
517
- "env": {
518
- "PYTHONPATH": "/Users/yourusername/.claude-memory"
519
- }
520
- }
521
- }
522
- }
523
- }
524
- ```
525
-
526
- 4. Save settings (Cmd+S)
527
- 5. Restart Zed
528
- 6. Check assistant panel for available MCP tools
529
-
530
- **Auto-configured by install.sh:** ❌ No (manual setup required)
531
-
532
- ---
533
-
534
- ### HTTP Transport (Remote Access)
535
-
536
- For any MCP client that requires HTTP transport (ChatGPT, remote access, web-based tools):
537
-
538
- **Start the HTTP server:**
539
-
540
- ```bash
541
- # Using CLI wrapper
542
- slm serve --port 8001
543
-
544
- # Using Python directly
545
- python3 ~/.superlocalmemory/mcp_server.py --transport http --port 8001
546
- ```
547
-
548
- **For local access:**
549
- ```
550
- http://localhost:8001
551
- ```
552
-
553
- **For remote access (ChatGPT, etc.):**
554
-
555
- ```bash
556
- # Option 1: ngrok (free tier available)
557
- ngrok http 8001
558
-
559
- # Option 2: Cloudflare Tunnel (free)
560
- cloudflared tunnel --url http://localhost:8001
561
- ```
562
-
563
- Then use the HTTPS URL from the tunnel in your MCP client.
564
-
565
- **Security note:** The server binds to localhost only. The tunnel is the only way external services can reach it. Your data never leaves your machine — it's served on demand.
566
-
567
- ---
568
-
569
- ### Custom MCP Clients
570
-
571
- If you're building your own MCP client or integrating with a custom tool:
572
-
573
- **Python Example:**
574
-
575
- ```python
576
- from mcp import Client
577
-
578
- client = Client()
579
- client.add_server(
580
- name="superlocalmemory-v2",
581
- command="python3",
582
- args=["/Users/yourusername/.claude-memory/mcp_server.py"],
583
- cwd="/Users/yourusername/.claude-memory",
584
- env={"PYTHONPATH": "/Users/yourusername/.claude-memory"}
585
- )
586
-
587
- # Use the MCP server
588
- response = client.call_tool("remember", {"content": "Test memory"})
589
- print(response)
590
- ```
591
-
592
- **HTTP Transport (for remote access):**
593
-
594
- Start MCP server in HTTP mode:
595
- ```bash
596
- python3 ~/.superlocalmemory/mcp_server.py --transport http --port 8001
597
- ```
598
-
599
- Then connect via HTTP:
600
- ```
601
- http://localhost:8001
602
- ```
603
-
604
- ---
605
-
606
- ## Troubleshooting
607
-
608
- ### Issue 1: "MCP server not found"
609
-
610
- **Solution:**
611
- 1. Verify file exists:
612
- ```bash
613
- ls -la ~/.superlocalmemory/mcp_server.py
614
- ```
615
- 2. Check permissions:
616
- ```bash
617
- chmod +x ~/.superlocalmemory/mcp_server.py
618
- ```
619
-
620
- ### Issue 2: "ModuleNotFoundError: No module named 'mcp'"
621
-
622
- **Solution:**
623
- ```bash
624
- pip3 install mcp
625
- # Or if using conda:
626
- conda install -c conda-forge mcp
627
- ```
628
-
629
- ### Issue 3: "Python not found"
630
-
631
- **Solution:**
632
- 1. Check Python installation:
633
- ```bash
634
- which python3
635
- ```
636
- 2. Use full Python path in config:
637
- ```json
638
- "command": "/usr/bin/python3"
639
- ```
640
-
641
- ### Issue 4: "Cannot import SuperLocalMemory modules"
642
-
643
- **Solution:**
644
- 1. Verify `cwd` and `PYTHONPATH` are set in config
645
- 2. Check modules exist:
646
- ```bash
647
- ls ~/.superlocalmemory/memory_store_v2.py
648
- ```
649
-
650
- ### Issue 5: IDE doesn't show MCP tools
651
-
652
- **Solution:**
653
- 1. **Completely restart the IDE** (not just reload)
654
- 2. Check IDE's MCP settings/logs
655
- 3. Test MCP server manually:
656
- ```bash
657
- python3 ~/.superlocalmemory/mcp_server.py
658
- # Should start without errors
659
- ```
660
-
661
- ### Issue 6: "Config file is overwritten"
662
-
663
- **Solution:**
664
- - install.sh creates backups: `mcp_settings.json.backup.YYYYMMDD-HHMMSS`
665
- - Restore if needed:
666
- ```bash
667
- cp ~/.cursor/mcp_settings.json.backup.* ~/.cursor/mcp_settings.json
668
- ```
669
-
670
- ---
671
-
672
- ## Verification
673
-
674
- After setup, verify MCP integration works:
675
-
676
- ### 1. Check MCP Server Status
677
-
678
- ```bash
679
- python3 ~/.superlocalmemory/mcp_server.py
680
- ```
681
-
682
- **Expected output:**
683
- ```
684
- ============================================================
685
- SuperLocalMemory V2 - MCP Server
686
- Version: 2.7.0
687
- ============================================================
688
-
689
- Transport: stdio
690
- Database: /Users/yourusername/.claude-memory/memory.db
691
-
692
- MCP Tools Available:
693
- - remember(content, tags, project, importance)
694
- - recall(query, limit, min_score)
695
- - search(query) [ChatGPT Connector]
696
- - fetch(id) [ChatGPT Connector]
697
- - list_recent(limit)
698
- - get_status()
699
- - build_graph()
700
- - switch_profile(name)
701
- - backup_status() [Auto-Backup]
702
- - memory_used(...) [v2.7 Learning]
703
- - get_learned_patterns(...) [v2.7 Learning]
704
- - correct_pattern(...) [v2.7 Learning]
705
-
706
- ...
707
- ```
708
-
709
- ### 2. Test in Your IDE/App
710
-
711
- Try these natural language commands:
712
-
713
- **Save a memory:**
714
- ```
715
- Remember that SuperLocalMemory V2 MCP integration works perfectly
716
- ```
717
-
718
- **Search memories:**
719
- ```
720
- What do we know about MCP integration?
721
- ```
722
-
723
- **Check status:**
724
- ```
725
- What's the status of my memory system?
726
- ```
727
-
728
- ### 3. Verify Tools are Visible
729
-
730
- In your IDE/app, check:
731
- - **Cursor:** Settings → Tools & MCP → Should show "superlocalmemory-v2" (green)
732
- - **Claude Desktop:** Tools menu → Should list SuperLocalMemory tools
733
- - **Continue.dev:** Extension panel → MCP servers section
734
- - **ChatGPT:** Tool selector in chat → Look for memory tools
735
-
736
- ---
737
-
738
- ## Available MCP Tools
739
-
740
- Once configured, these 12 tools are available:
741
-
742
- | Tool | Purpose | Example Usage |
743
- |------|---------|---------------|
744
- | `remember()` | Save memories | "Remember we use React hooks" |
745
- | `recall()` | Search memories | "What did we decide about authentication?" |
746
- | `list_recent()` | Recent memories | "Show me recent discussions" |
747
- | `get_status()` | System health | "How many memories do I have?" |
748
- | `build_graph()` | Build knowledge graph | "Build the knowledge graph" |
749
- | `switch_profile()` | Change profile | "Switch to work profile" |
750
- | `search()` | Search memories (OpenAI MCP spec) | Used by ChatGPT Connectors and Deep Research |
751
- | `fetch()` | Fetch memory by ID (OpenAI MCP spec) | Used by ChatGPT Connectors and Deep Research |
752
- | `backup_status()` | Auto-backup status | "What's the backup status?" |
753
- | `memory_used()` | Feedback for learning (v2.7) | Implicit — called when a recalled memory is used |
754
- | `get_learned_patterns()` | Retrieve learned patterns (v2.7) | "What patterns have you learned about me?" |
755
- | `correct_pattern()` | Correct a learned pattern (v2.7) | "I actually prefer Vue, not React" |
756
-
757
- **Note:** `search()` and `fetch()` are required by OpenAI's MCP specification for ChatGPT Connectors. They are available in all transports but primarily used by ChatGPT. The 3 learning tools (`memory_used`, `get_learned_patterns`, `correct_pattern`) require v2.7's optional learning dependencies.
758
-
759
- Plus **2 MCP prompts** and **6 MCP resources** for advanced use.
760
-
761
- ---
762
-
763
- ## Need Help?
764
-
765
- 1. **Check logs:** Most IDEs have MCP server logs in their developer tools
766
- 2. **Test manually:** Run `python3 ~/.superlocalmemory/mcp_server.py` to see errors
767
- 3. **GitHub Issues:** https://github.com/qualixar/superlocalmemory/issues
768
- 4. **Documentation:** https://github.com/qualixar/superlocalmemory
769
-
770
- ---
771
-
772
- **100% local. 100% private. Works everywhere.**
773
-
774
- SuperLocalMemory V2 - by Varun Pratap Bhardwaj
775
- Licensed under AGPL-3.0