rag-memory-pg-mcp 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/handlers.js +2 -1
- package/src/index.js +1 -1
- package/src/tool-modes.js +1 -1
- package/src/tools.js +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.2.0] - 2026-01-05
|
|
9
|
+
|
|
10
|
+
### Breaking Changes 🔴
|
|
11
|
+
- **Renamed `readGraph` → `getGraph`** due to Cursor API conflict
|
|
12
|
+
- The `readGraph` name was causing the tool to be ignored/blocked by Cursor
|
|
13
|
+
- Handler supports both names for backward compatibility
|
|
14
|
+
|
|
15
|
+
### Fixed 🐛
|
|
16
|
+
- **Tool loading in CLIENT mode** - now correctly shows 10 tools (was showing 9)
|
|
17
|
+
- Root cause: `readGraph` conflicted with Cursor internal API
|
|
18
|
+
- Solution: Renamed to `getGraph` - all tools now load properly
|
|
19
|
+
|
|
20
|
+
### Technical Details
|
|
21
|
+
- Debug analysis showed server was sending 10 tools correctly
|
|
22
|
+
- Cursor was blocking/ignoring the `readGraph` tool during registration
|
|
23
|
+
- Tool name conflict resolved by renaming
|
|
24
|
+
|
|
8
25
|
## [2.1.1] - 2026-01-05
|
|
9
26
|
|
|
10
27
|
### Added ✨
|
package/README.md
CHANGED
|
@@ -196,7 +196,7 @@ npm install -g github:kshidenko/rag-memory-pg-mcp
|
|
|
196
196
|
- Knowledge Graph: createEntities, createRelations, addObservations, searchNodes, openNodes
|
|
197
197
|
- Documents: processDocument (⭐ main tool)
|
|
198
198
|
- Search: hybridSearch, getDetailedContext
|
|
199
|
-
- Info:
|
|
199
|
+
- Info: getGraph, getKnowledgeGraphStats
|
|
200
200
|
|
|
201
201
|
**MAINTENANCE mode (11 tools) - For cleanup and admin:**
|
|
202
202
|
- Cleanup: deleteEntities, deleteRelations, deleteObservations, deleteDocuments
|
package/package.json
CHANGED
package/src/handlers.js
CHANGED
|
@@ -102,7 +102,8 @@ async function executeToolMethod(name, args, manager) {
|
|
|
102
102
|
includeEntities: args.includeEntities,
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
case '
|
|
105
|
+
case 'getGraph':
|
|
106
|
+
case 'readGraph': // Backward compatibility
|
|
106
107
|
return manager.readGraph();
|
|
107
108
|
|
|
108
109
|
// ==================== UTILITIES ====================
|
package/src/index.js
CHANGED
|
@@ -62,7 +62,7 @@ console.error(`📊 Active tools: ${activeTools.length}/${allTools.length}`);
|
|
|
62
62
|
const server = new Server(
|
|
63
63
|
{
|
|
64
64
|
name: 'rag-memory-pg',
|
|
65
|
-
version: '2.
|
|
65
|
+
version: '2.2.0',
|
|
66
66
|
description: 'RAG-enabled memory with PostgreSQL/Supabase backend. Provides knowledge graph, document management, and semantic search. All content should be in English for optimal performance.',
|
|
67
67
|
instructions: `This is a RAG (Retrieval-Augmented Generation) memory system with knowledge graph capabilities.
|
|
68
68
|
|
package/src/tool-modes.js
CHANGED
|
@@ -27,7 +27,7 @@ export const TOOL_MODES = {
|
|
|
27
27
|
'getDetailedContext', // Get rich context with entities
|
|
28
28
|
|
|
29
29
|
// Utilities - Basic info
|
|
30
|
-
'
|
|
30
|
+
'getGraph', // View knowledge graph (renamed from readGraph)
|
|
31
31
|
'getKnowledgeGraphStats', // See statistics
|
|
32
32
|
],
|
|
33
33
|
|
package/src/tools.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @returns {object[]} Array of tool definitions
|
|
14
14
|
*/
|
|
15
15
|
export function getToolDefinitions() {
|
|
16
|
-
|
|
16
|
+
const tools = [
|
|
17
17
|
// ==================== ENTITY TOOLS ====================
|
|
18
18
|
{
|
|
19
19
|
name: 'createEntities',
|
|
@@ -297,7 +297,7 @@ export function getToolDefinitions() {
|
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
299
|
name: 'embedAllEntities',
|
|
300
|
-
description: 'Generate embeddings for all entities',
|
|
300
|
+
description: 'Generate embeddings for all entities in the knowledge graph. Use this to enable semantic search on entities or after adding many new entities. No parameters required.',
|
|
301
301
|
inputSchema: {
|
|
302
302
|
type: 'object',
|
|
303
303
|
properties: {},
|
|
@@ -349,23 +349,21 @@ export function getToolDefinitions() {
|
|
|
349
349
|
},
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
|
-
name: '
|
|
353
|
-
description: '
|
|
352
|
+
name: 'getGraph',
|
|
353
|
+
description: 'Get the entire knowledge graph with all entities, relationships, and observations. Use this to retrieve complete overview of stored knowledge. Returns full graph structure for analysis or visualization. No parameters required.',
|
|
354
354
|
inputSchema: {
|
|
355
355
|
type: 'object',
|
|
356
356
|
properties: {},
|
|
357
|
-
description: 'No parameters required. Returns complete graph with all entities and their connections.'
|
|
358
357
|
},
|
|
359
358
|
},
|
|
360
359
|
|
|
361
360
|
// ==================== UTILITY TOOLS ====================
|
|
362
361
|
{
|
|
363
362
|
name: 'getKnowledgeGraphStats',
|
|
364
|
-
description: 'Get statistics about the knowledge graph including total counts of entities, relationships, documents, and chunks. Use this to understand the size and scope of stored knowledge.',
|
|
363
|
+
description: 'Get statistics about the knowledge graph including total counts of entities, relationships, documents, and chunks. Use this to understand the size and scope of stored knowledge. Returns entity_count, relationship_count, document_count, chunk_count, and type distributions. No parameters required.',
|
|
365
364
|
inputSchema: {
|
|
366
365
|
type: 'object',
|
|
367
366
|
properties: {},
|
|
368
|
-
description: 'No parameters required. Returns entity_count, relationship_count, document_count, chunk_count, and type distributions.'
|
|
369
367
|
},
|
|
370
368
|
},
|
|
371
369
|
{
|
|
@@ -394,4 +392,6 @@ export function getToolDefinitions() {
|
|
|
394
392
|
},
|
|
395
393
|
},
|
|
396
394
|
];
|
|
395
|
+
|
|
396
|
+
return tools;
|
|
397
397
|
}
|