Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/memory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ import { promises as fs } from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';



import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
const PACKAGE_VERSION: string = require('../package.json').version;

// Define memory file path using environment variable with fallback
export const defaultMemoryPath = path.join(path.dirname(fileURLToPath(import.meta.url)), 'memory.jsonl');

Expand Down Expand Up @@ -256,7 +262,7 @@ const RelationSchema = z.object({
// The server instance and tools exposed to Claude
const server = new McpServer({
name: "memory-server",
version: "0.6.3",
version: PACKAGE_VERSION,
});

const RESOURCE_URI = "memory://knowledge-graph";
Expand Down
5 changes: 3 additions & 2 deletions src/memory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"test": "vitest run --coverage"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0"
"@modelcontextprotocol/sdk": "^1.29.0",
"zod": "^3"
},
"devDependencies": {
"@types/node": "^22",
Expand All @@ -34,4 +35,4 @@
"typescript": "^5.6.2",
"vitest": "^4.1.8"
}
}
}
5 changes: 3 additions & 2 deletions src/sequentialthinking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"chalk": "^5.3.0",
"yargs": "^17.7.2"
"yargs": "^17.7.2",
"zod": "^3"
},
"devDependencies": {
"@types/node": "^22",
Expand All @@ -37,4 +38,4 @@
"typescript": "^5.3.3",
"vitest": "^4.1.8"
}
}
}
Loading