Skip to content

Commit 83dea11

Browse files
Merge branch 'main' into patch-1
2 parents 73bb743 + 0f77302 commit 83dea11

File tree

6 files changed

+39
-7
lines changed

6 files changed

+39
-7
lines changed

src/everything/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"scripts": {
1717
"build": "tsc && shx chmod +x dist/*.js",
1818
"prepare": "npm run build",
19-
"watch": "tsc --watch"
19+
"watch": "tsc --watch",
20+
"start": "node dist/index.js",
21+
"start:sse": "node dist/sse.js"
2022
},
2123
"dependencies": {
2224
"@modelcontextprotocol/sdk": "1.0.1",

src/gitlab/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ Add the following to your `claude_desktop_config.json`:
117117
"command": "docker",
118118
"args": [
119119
"run",
120+
"--rm",
121+
"-i",
120122
"-e",
121123
"GITLAB_PERSONAL_ACCESS_TOKEN",
122124
"-e",
@@ -167,4 +169,4 @@ docker build -t vonwig/gitlab:mcp -f src/gitlab/Dockerfile .
167169

168170
## License
169171

170-
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
172+
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

src/google-maps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Add the following to your `claude_desktop_config.json`:
106106
Docker build:
107107

108108
```bash
109-
docker build -t vonwig/google-maps:mcp -f src/google-maps/Dockerfile .
109+
docker build -t mcp/google-maps -f src/google-maps/Dockerfile .
110110
```
111111

112112
## License

src/memory/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,29 @@ Add this to your claude_desktop_config.json:
158158
}
159159
```
160160

161+
#### NPX with custom setting
162+
163+
The server can be configured using the following environment variables:
164+
165+
```json
166+
{
167+
"mcpServers": {
168+
"memory": {
169+
"command": "npx",
170+
"args": [
171+
"-y",
172+
"@modelcontextprotocol/server-memory"
173+
],
174+
"env": {
175+
"MEMORY_FILE_PATH": "/path/to/custom/memory.json"
176+
}
177+
}
178+
}
179+
}
180+
```
181+
182+
- `MEMORY_FILE_PATH`: Path to the memory storage JSON file (default: `memory.json` in the server directory)
183+
161184
### System Prompt
162185

163186
The prompt for utilizing memory depends on the use case. Changing the prompt will help the model determine the frequency and types of memories created.

src/memory/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ import { promises as fs } from 'fs';
1010
import path from 'path';
1111
import { fileURLToPath } from 'url';
1212

13+
// Define memory file path using environment variable with fallback
14+
const defaultMemoryPath = path.join(path.dirname(fileURLToPath(import.meta.url)), 'memory.json');
1315

14-
// Define the path to the JSONL file, you can change this to your desired local path
15-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
16-
const MEMORY_FILE_PATH = path.join(__dirname, 'memory.json');
16+
// If MEMORY_FILE_PATH is just a filename, put it in the same directory as the script
17+
const MEMORY_FILE_PATH = process.env.MEMORY_FILE_PATH
18+
? path.isAbsolute(process.env.MEMORY_FILE_PATH)
19+
? process.env.MEMORY_FILE_PATH
20+
: path.join(path.dirname(fileURLToPath(import.meta.url)), process.env.MEMORY_FILE_PATH)
21+
: defaultMemoryPath;
1722

1823
// We are storing our memory using entities, relations, and observations in a graph structure
1924
interface Entity {

src/memory/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/server-memory",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "MCP server for enabling memory for Claude through a knowledge graph",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",

0 commit comments

Comments
 (0)