Lex for VS Code
dev.smartergpt/lex
Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
client:VS Code
transport:stdio
runtime:npm
Install Lex in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "lex-workspace-root",
"description": "LEX_WORKSPACE_ROOT",
"password": true
},
{
"type": "promptString",
"id": "lex-store",
"description": "LEX_STORE",
"password": true
},
{
"type": "promptString",
"id": "lex-db-path",
"description": "LEX_DB_PATH",
"password": true
},
{
"type": "promptString",
"id": "lex-memory-db",
"description": "LEX_MEMORY_DB",
"password": true
},
{
"type": "promptString",
"id": "lex-database-url",
"description": "LEX_DATABASE_URL",
"password": true
},
{
"type": "promptString",
"id": "lex-postgres-password",
"description": "LEX_POSTGRES_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "lex-postgres-pool-max",
"description": "LEX_POSTGRES_POOL_MAX",
"password": true
},
{
"type": "promptString",
"id": "lex-debug",
"description": "LEX_DEBUG",
"password": true
}
],
"servers": {
"lex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"env": {
"LEX_WORKSPACE_ROOT": "${input:lex-workspace-root}",
"LEX_STORE": "${input:lex-store}",
"LEX_DB_PATH": "${input:lex-db-path}",
"LEX_MEMORY_DB": "${input:lex-memory-db}",
"LEX_DATABASE_URL": "${input:lex-database-url}",
"LEX_POSTGRES_PASSWORD": "${input:lex-postgres-password}",
"LEX_POSTGRES_POOL_MAX": "${input:lex-postgres-pool-max}",
"LEX_DEBUG": "${input:lex-debug}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs