From c6e118e79fedb2a2714055a6276e602d16e2e8f7 Mon Sep 17 00:00:00 2001 From: Leon Mergen Date: Thu, 19 Jun 2025 11:35:12 +0700 Subject: [PATCH 1/2] Use current working directory as default path --- src/memory/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/index.ts b/src/memory/index.ts index b7993a3a08..cee3ca7b24 100644 --- a/src/memory/index.ts +++ b/src/memory/index.ts @@ -11,7 +11,7 @@ import path from 'path'; import { fileURLToPath } from 'url'; // Define memory file path using environment variable with fallback -const defaultMemoryPath = path.join(path.dirname(fileURLToPath(import.meta.url)), 'memory.json'); +const defaultMemoryPath = path.join(process.cwd(), 'memory.json'); // If MEMORY_FILE_PATH is just a filename, put it in the same directory as the script const MEMORY_FILE_PATH = process.env.MEMORY_FILE_PATH From dcda2be029702fb07ff6e1ccf9cd3029c2de0174 Mon Sep 17 00:00:00 2001 From: Leon Mergen Date: Thu, 19 Jun 2025 11:41:22 +0700 Subject: [PATCH 2/2] Update README to reflect changes --- src/memory/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/README.md b/src/memory/README.md index 5b131ff6c8..a7e01902fd 100644 --- a/src/memory/README.md +++ b/src/memory/README.md @@ -180,7 +180,7 @@ The server can be configured using the following environment variables: } ``` -- `MEMORY_FILE_PATH`: Path to the memory storage JSON file (default: `memory.json` in the server directory) +- `MEMORY_FILE_PATH`: Path to the memory storage JSON file (default: `memory.json` in the current working directory) # VS Code Installation Instructions