Skip to content

Commit 9d8c2df

Browse files
claude[bot]olaservo
andcommitted
fix: Change memory server default filename from memory.json to memory.jsonl
The Memory MCP server uses JSONL format (JSON Lines) where each line contains a separate JSON object, but was using a .json file extension. This caused IDE lint errors and confusion since the file is not valid JSON. Changes: - Update default filename in index.ts from memory.json to memory.jsonl - Update documentation references in README.md - Maintain backward compatibility for existing MEMORY_FILE_PATH configs Fixes #2361 Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
1 parent 57ab02c commit 9d8c2df

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/memory/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ The server can be configured using the following environment variables:
173173
"@modelcontextprotocol/server-memory"
174174
],
175175
"env": {
176-
"MEMORY_FILE_PATH": "/path/to/custom/memory.json"
176+
"MEMORY_FILE_PATH": "/path/to/custom/memory.jsonl"
177177
}
178178
}
179179
}
180180
}
181181
```
182182

183-
- `MEMORY_FILE_PATH`: Path to the memory storage JSON file (default: `memory.json` in the server directory)
183+
- `MEMORY_FILE_PATH`: Path to the memory storage JSONL file (default: `memory.jsonl` in the server directory)
184184

185185
# VS Code Installation Instructions
186186

src/memory/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import path from 'path';
1111
import { fileURLToPath } from 'url';
1212

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

1616
// If MEMORY_FILE_PATH is just a filename, put it in the same directory as the script
1717
const MEMORY_FILE_PATH = process.env.MEMORY_FILE_PATH

0 commit comments

Comments
 (0)