@levalicious/server-memory 0.0.3 → 0.0.5
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/README.md +59 -4
- package/dist/index.js +399 -338
- package/dist/tests/memory-server.test.js +438 -0
- package/dist/tests/test-utils.js +37 -0
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -125,6 +125,63 @@ Example:
|
|
|
125
125
|
- Relations between requested entities
|
|
126
126
|
- Silently skips non-existent nodes
|
|
127
127
|
|
|
128
|
+
- **get_neighbors**
|
|
129
|
+
- Get neighboring entities connected to a specific entity within a given depth
|
|
130
|
+
- Input: `entityName` (string), `depth` (number, default: 1)
|
|
131
|
+
- Returns entities connected within specified depth
|
|
132
|
+
|
|
133
|
+
- **find_path**
|
|
134
|
+
- Find a path between two entities in the knowledge graph
|
|
135
|
+
- Input: `fromEntity` (string), `toEntity` (string), `maxDepth` (number, default: 5)
|
|
136
|
+
- Returns path between entities if one exists
|
|
137
|
+
|
|
138
|
+
- **get_entities_by_type**
|
|
139
|
+
- Get all entities of a specific type
|
|
140
|
+
- Input: `entityType` (string)
|
|
141
|
+
- Returns all entities matching the specified type
|
|
142
|
+
|
|
143
|
+
- **get_entity_types**
|
|
144
|
+
- Get all unique entity types in the knowledge graph
|
|
145
|
+
- No input required
|
|
146
|
+
- Returns list of all entity types
|
|
147
|
+
|
|
148
|
+
- **get_relation_types**
|
|
149
|
+
- Get all unique relation types in the knowledge graph
|
|
150
|
+
- No input required
|
|
151
|
+
- Returns list of all relation types
|
|
152
|
+
|
|
153
|
+
- **get_stats**
|
|
154
|
+
- Get statistics about the knowledge graph
|
|
155
|
+
- No input required
|
|
156
|
+
- Returns entity count, relation count, entity types count, relation types count
|
|
157
|
+
|
|
158
|
+
- **get_orphaned_entities**
|
|
159
|
+
- Get entities that have no relations
|
|
160
|
+
- No input required
|
|
161
|
+
- Returns entities with no connections
|
|
162
|
+
|
|
163
|
+
- **validate_graph**
|
|
164
|
+
- Validate the knowledge graph and return missing entities referenced in relations
|
|
165
|
+
- No input required
|
|
166
|
+
- Returns list of missing entities
|
|
167
|
+
|
|
168
|
+
- **evaluate_bcl**
|
|
169
|
+
- Evaluate a Binary Combinatory Logic (BCL) program
|
|
170
|
+
- Input: `program` (string), `maxSteps` (number, default: 1000000)
|
|
171
|
+
- BCL syntax: T:=00|01|1TT where 00=K, 01=S, 1=application
|
|
172
|
+
- Returns evaluation result with halt status
|
|
173
|
+
|
|
174
|
+
- **add_bcl_term**
|
|
175
|
+
- Add a BCL term to the constructor, maintaining valid syntax
|
|
176
|
+
- Input: `term` (string)
|
|
177
|
+
- Valid values: '1' or 'App' (application), '00' or 'K' (K combinator), '01' or 'S' (S combinator)
|
|
178
|
+
- Returns completion status
|
|
179
|
+
|
|
180
|
+
- **clear_bcl_term**
|
|
181
|
+
- Clear the current BCL term being constructed and reset the constructor state
|
|
182
|
+
- No input required
|
|
183
|
+
- Resets BCL constructor
|
|
184
|
+
|
|
128
185
|
# Usage with Claude Desktop
|
|
129
186
|
|
|
130
187
|
### Setup
|
|
@@ -186,9 +243,7 @@ The server can be configured using the following environment variables:
|
|
|
186
243
|
|
|
187
244
|
For quick installation, use one of the one-click installation buttons below:
|
|
188
245
|
|
|
189
|
-
[](https://insiders.vscode.dev/redirect/mcp/install?name=memory&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%
|
|
190
|
-
|
|
191
|
-
[](https://insiders.vscode.dev/redirect/mcp/install?name=memory&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22-v%22%2C%22claude-memory%3A%2Fapp%2Fdist%22%2C%22--rm%22%2C%22mcp%2Fmemory%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=memory&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22-v%22%2C%22claude-memory%3A%2Fapp%2Fdist%22%2C%22--rm%22%2C%22mcp%2Fmemory%22%5D%7D&quality=insiders)
|
|
246
|
+
[](https://insiders.vscode.dev/redirect/mcp/install?name=memory&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40levalicious%2Fserver-memory%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=memory&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40levalicious%2Fserver-memory%22%5D%7D&quality=insiders)
|
|
192
247
|
|
|
193
248
|
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open Settings (JSON)`.
|
|
194
249
|
|
|
@@ -278,4 +333,4 @@ docker build -t mcp/memory -f src/memory/Dockerfile .
|
|
|
278
333
|
|
|
279
334
|
## License
|
|
280
335
|
|
|
281
|
-
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.
|
|
336
|
+
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.
|