memvid-mcp-server 1.0.3 → 1.0.4
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 +6 -4
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,9 +23,10 @@ This server can be used with any MCP-compliant client (e.g., Claude Desktop, Cur
|
|
|
23
23
|
|
|
24
24
|
### Environment Variables
|
|
25
25
|
|
|
26
|
-
| Variable
|
|
27
|
-
|
|
|
28
|
-
| `OPENAI_API_KEY`
|
|
26
|
+
| Variable | Description | Required |
|
|
27
|
+
| ---------------------- | -------------------------------------------------------------------------------------------------------- | ------------- |
|
|
28
|
+
| `OPENAI_API_KEY` | Your OpenAI API Key. Required to enable the `ask_memory` tool and for semantic embeddings in some modes. | No (Optional) |
|
|
29
|
+
| `MEMVID_LOCAL_STORAGE` | Set to `"1"` to store memory files in `./memvid_mcp` (current directory) instead of `~/.memvid_mcp`. | No (Optional) |
|
|
29
30
|
|
|
30
31
|
### Claude Desktop Configuration
|
|
31
32
|
|
|
@@ -38,7 +39,8 @@ Add the following to your `claude_desktop_config.json`:
|
|
|
38
39
|
"command": "npx",
|
|
39
40
|
"args": ["-y", "memvid-mcp-server"],
|
|
40
41
|
"env": {
|
|
41
|
-
"OPENAI_API_KEY": "sk-..."
|
|
42
|
+
"OPENAI_API_KEY": "sk-...",
|
|
43
|
+
"MEMVID_LOCAL_STORAGE": "0"
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,12 @@ class MemoryManager {
|
|
|
42
42
|
storageDir;
|
|
43
43
|
constructor() {
|
|
44
44
|
this.memories = new Map;
|
|
45
|
-
|
|
45
|
+
if (process.env.MEMVID_LOCAL_STORAGE === "1") {
|
|
46
|
+
this.storageDir = path.join(process.cwd(), "memvid_mcp");
|
|
47
|
+
console.error(`[Memvid] Using local storage: ${this.storageDir}`);
|
|
48
|
+
} else {
|
|
49
|
+
this.storageDir = path.join(os.homedir(), ".memvid_mcp");
|
|
50
|
+
}
|
|
46
51
|
this.ensureStorageDir();
|
|
47
52
|
}
|
|
48
53
|
static getInstance() {
|