Skip to content
VS Code

Lex for VS Code

io.github.guffawaffle/lex

Episodic memory and architectural policy for AI agents. Frames, Atlas, and Policy.

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-memory-db",
      "description": "LEX_MEMORY_DB",
      "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_MEMORY_DB": "${input:lex-memory-db}",
        "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

Lex in other clients