brainllm for VS Code
io.github.miisodev/brainllm
Persistent graph-structured memory for LLMs in TriliumNext Notes — readable and editable by humans.
client:VS Code
transport:stdio
runtime:npm
Install brainllm in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "trilium-base-url",
"description": "TRILIUM_BASE_URL",
"password": true
},
{
"type": "promptString",
"id": "trilium-etapi-token",
"description": "TRILIUM_ETAPI_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "trilium-password",
"description": "TRILIUM_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "brainllm-mode",
"description": "BRAINLLM_MODE",
"password": true
},
{
"type": "promptString",
"id": "brainllm-tz",
"description": "BRAINLLM_TZ",
"password": true
},
{
"type": "promptString",
"id": "brainllm-owner-password",
"description": "BRAINLLM_OWNER_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "brainllm-oauth-secret",
"description": "BRAINLLM_OAUTH_SECRET",
"password": true
},
{
"type": "promptString",
"id": "brainllm-public-url",
"description": "BRAINLLM_PUBLIC_URL",
"password": true
},
{
"type": "promptString",
"id": "brainllm-allow-unauthenticated-http",
"description": "BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP",
"password": true
},
{
"type": "promptString",
"id": "brainllm-trust-proxy",
"description": "BRAINLLM_TRUST_PROXY",
"password": true
}
],
"servers": {
"brainllm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "${input:trilium-base-url}",
"TRILIUM_ETAPI_TOKEN": "${input:trilium-etapi-token}",
"TRILIUM_PASSWORD": "${input:trilium-password}",
"BRAINLLM_MODE": "${input:brainllm-mode}",
"BRAINLLM_TZ": "${input:brainllm-tz}",
"BRAINLLM_OWNER_PASSWORD": "${input:brainllm-owner-password}",
"BRAINLLM_OAUTH_SECRET": "${input:brainllm-oauth-secret}",
"BRAINLLM_PUBLIC_URL": "${input:brainllm-public-url}",
"BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP": "${input:brainllm-allow-unauthenticated-http}",
"BRAINLLM_TRUST_PROXY": "${input:brainllm-trust-proxy}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs