OpenWork (OpenCode Desktop) Integration
This project exposes an MCP server so OpenWork/OpenCode can call Aionis Memory Graph as tools.
What You Get
aionis_memory_remember: write one memory node (default type=event)aionis_memory_recall_text: recall a compact, LLM-friendly text context
Embeddings are derived artifacts: the MCP tool will not block on embeddings, and it never returns embeddings.
Prereqs
- Aionis API running (default from
.env.example:http://localhost:3001) - Node >= 18
Run The MCP Server
Build:
bash
cd /Users/lucio/Desktop/Aionis
npm run buildRun (manual smoke):
bash
cd /Users/lucio/Desktop/Aionis
AIONIS_BASE_URL=http://localhost:${PORT:-3001} AIONIS_SCOPE=default node dist/mcp/aionis-mcp.jsRepo smoke (stdio MCP handshake + tool call):
bash
cd /Users/lucio/Desktop/Aionis
set -a; source .env; set +a
bash examples/mcp_stdio_smoke.shConfigure OpenWork / OpenCode
OpenCode supports MCP servers via its config file. Add a local MCP server entry.
Example snippet (adjust path/env):
jsonc
{
"mcp": {
"aionis": {
"type": "local",
"command": ["node", "/Users/lucio/Desktop/Aionis/dist/mcp/aionis-mcp.js"],
"enabled": true,
"environment": {
"AIONIS_BASE_URL": "http://localhost:3001",
"AIONIS_SCOPE": "default"
}
}
}
}If your Aionis API requires admin-gated operations, you can also set:
AIONIS_ADMIN_TOKEN: forwarded asX-Admin-Tokenheader to the APIAIONIS_API_KEY: forwarded asX-Api-Key(forMEMORY_AUTH_MODE=api_key/api_key_or_jwt)AIONIS_AUTH_BEARER: forwarded asAuthorization: Bearer <jwt>(forMEMORY_AUTH_MODE=jwt/api_key_or_jwt)
Recommended Agent Instruction
To get consistent behavior, tell your agent to:
- call
aionis_memory_recall_textbefore planning/executing when the task is non-trivial - call
aionis_memory_rememberafter finishing a run to store outcomes/decisions