Treant for VS Code
io.github.ashkmb/treant-memory
Self-hosted graph memory for AI coding agents: Postgres + pgvector, isolated workspaces.
client:VS Code
transport:stdio
runtime:oci
Install Treant in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "treant-database-url",
"description": "TREANT_DATABASE_URL",
"password": true
},
{
"type": "promptString",
"id": "treant-embed-url",
"description": "TREANT_EMBED_URL",
"password": true
},
{
"type": "promptString",
"id": "treant-embed-model",
"description": "TREANT_EMBED_MODEL",
"password": true
},
{
"type": "promptString",
"id": "treant-embed-dims",
"description": "TREANT_EMBED_DIMS",
"password": true
},
{
"type": "promptString",
"id": "treant-bind",
"description": "TREANT_BIND",
"password": true
}
],
"servers": {
"treant-memory": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/ashkmb/treant-memory:0.1.1"
],
"env": {
"TREANT_DATABASE_URL": "${input:treant-database-url}",
"TREANT_EMBED_URL": "${input:treant-embed-url}",
"TREANT_EMBED_MODEL": "${input:treant-embed-model}",
"TREANT_EMBED_DIMS": "${input:treant-embed-dims}",
"TREANT_BIND": "${input:treant-bind}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs