From 6a50ecadc264a12611ed30998059883f3c0f6021 Mon Sep 17 00:00:00 2001 From: Al Joslin Date: Sat, 5 Apr 2025 19:34:29 -0400 Subject: [PATCH 1/3] read_graph takes no args --- src/memory/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/memory/index.ts b/src/memory/index.ts index 62f7aeb66e..1f078c5420 100644 --- a/src/memory/index.ts +++ b/src/memory/index.ts @@ -376,6 +376,10 @@ server.setRequestHandler(ListToolsRequestSchema, async () => { server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; + if (name === "read_graph") { + return { content: [{ type: "text", text: JSON.stringify(await knowledgeGraphManager.readGraph(), null, 2) }] }; + } + if (!args) { throw new Error(`No arguments provided for tool: ${name}`); } @@ -396,8 +400,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => { case "delete_relations": await knowledgeGraphManager.deleteRelations(args.relations as Relation[]); return { content: [{ type: "text", text: "Relations deleted successfully" }] }; - case "read_graph": - return { content: [{ type: "text", text: JSON.stringify(await knowledgeGraphManager.readGraph(), null, 2) }] }; case "search_nodes": return { content: [{ type: "text", text: JSON.stringify(await knowledgeGraphManager.searchNodes(args.query as string), null, 2) }] }; case "open_nodes": From 4b9e32d179647c22caba9f1551a69fbe7ac17bda Mon Sep 17 00:00:00 2001 From: Al Joslin Date: Sat, 5 Apr 2025 19:52:28 -0400 Subject: [PATCH 2/3] explains how not to get confused --- src/memory/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/memory/README.md b/src/memory/README.md index e5795cb54e..1d496a2aac 100644 --- a/src/memory/README.md +++ b/src/memory/README.md @@ -221,6 +221,8 @@ Docker: docker build -t mcp/memory -f src/memory/Dockerfile . ``` +Note: when upgrading a combination of docker usage and a docker volume for storage, delete the previous index.js file from the old docker volume before starting the new container so this new index.js is not overwritten. + ## License 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. From 045b15a6149d01e3370409da580be9b206384a20 Mon Sep 17 00:00:00 2001 From: Al Joslin Date: Sat, 5 Apr 2025 19:55:36 -0400 Subject: [PATCH 3/3] maybe AI makes more sense --- 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 1d496a2aac..928680c9cf 100644 --- a/src/memory/README.md +++ b/src/memory/README.md @@ -221,7 +221,7 @@ Docker: docker build -t mcp/memory -f src/memory/Dockerfile . ``` -Note: when upgrading a combination of docker usage and a docker volume for storage, delete the previous index.js file from the old docker volume before starting the new container so this new index.js is not overwritten. +For Awareness: a prior mcp/memory volume contains an index.js file that could be overwritten by the new container. If you are using a docker volume for storage, delete the old docker volume's `index.js` file before starting the new container. ## License