Skip to content
VS Code

ocular for VS Code

io.github.xyun1996/ocular

Vision tools for coding agents: screenshots, OCR, UI diffs, errors, tables, and charts.

client:VS Code transport:stdio runtime:npm

Install ocular in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ocular-base-url",
      "description": "OCULAR_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ocular-api-key",
      "description": "OCULAR_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ocular-model",
      "description": "OCULAR_MODEL",
      "password": true
    }
  ],
  "servers": {
    "ocular": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ocular-mcp"
      ],
      "env": {
        "OCULAR_BASE_URL": "${input:ocular-base-url}",
        "OCULAR_API_KEY": "${input:ocular-api-key}",
        "OCULAR_MODEL": "${input:ocular-model}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ocular in other clients