mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 14:49:06 +00:00
Fix Issue #12 tests and add OpenBrain repo guidance
This commit is contained in:
27
README.md
27
README.md
@@ -18,6 +18,7 @@ OpenBrain is a Model Context Protocol (MCP) server that provides AI agents with
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `store` | Store a memory with automatic embedding generation and keyword extraction |
|
||||
| `batch_store` | Store 1-50 memories atomically in a single call |
|
||||
| `query` | Search memories by semantic similarity |
|
||||
| `purge` | Delete memories by agent ID or time range |
|
||||
|
||||
@@ -147,6 +148,32 @@ Health Check: http://localhost:3100/mcp/health
|
||||
}
|
||||
```
|
||||
|
||||
### Example: Batch Store Memories
|
||||
|
||||
```json
|
||||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 3,
|
||||
"method": "tools/call",
|
||||
"params": {
|
||||
"name": "batch_store",
|
||||
"arguments": {
|
||||
"agent_id": "assistant-1",
|
||||
"entries": [
|
||||
{
|
||||
"content": "The user prefers dark mode",
|
||||
"metadata": {"category": "preference"}
|
||||
},
|
||||
{
|
||||
"content": "The user uses vim keybindings",
|
||||
"metadata": {"category": "preference"}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user