Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:38:46 +08:00
commit 6902106648
49 changed files with 11466 additions and 0 deletions

View File

@@ -0,0 +1,113 @@
# Memory Graph Operations (I/O)
Use the fully-qualified tool names with the MCP prefix: `mcp__memory__<tool>`.
All tools below belong to the server `memory`.
## create_entities
Create multiple new entities. Skips any entity whose `name` already exists.
Input
```
{
"entities": [
{
"name": "string",
"entityType": "string",
"observations": ["string", "string"]
}
]
}
```
## create_relations
Create multiple relations. Skips duplicates.
Input
```
{
"relations": [
{
"from": "string",
"to": "string",
"relationType": "string" // active voice, e.g. "depends_on", "owned_by"
}
]
}
```
## add_observations
Add observations to existing entities. Fails if `entityName` doesnt exist.
Input
```
{
"observations": [
{
"entityName": "string",
"contents": ["string", "string"]
}
]
}
```
## delete_entities
Remove entities and cascade their relations. No-op if missing.
Input
```
{ "entityNames": ["string", "string"] }
```
## delete_observations
Remove specific observations from entities. No-op if missing.
Input
```
{
"deletions": [
{
"entityName": "string",
"observations": ["string", "string"]
}
]
}
```
## delete_relations
Remove specific relations. No-op if missing.
Input
```
{
"relations": [
{
"from": "string",
"to": "string",
"relationType": "string"
}
]
}
```
## read_graph
Return the entire graph.
Input: none
## search_nodes
Fuzzy search across entity names, types, and observations.
Input
```
{ "query": "string" }
```
## open_nodes
Return specific nodes and relations connecting them. Skips non-existent names.
Input
```
{ "names": ["string", "string"] }
```