Skip to content
VS Code

VisualSpec for VS Code

io.github.utkarshx27/visualspec

Structured, constraint-aware visual generation and deterministic layout for AI agents

client:VS Code transport:stdio runtime:npm

Install VisualSpec in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "openai-api-key",
      "description": "OPENAI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gemini-api-key",
      "description": "GEMINI_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "visualspec": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@utkarshx27/visualspec"
      ],
      "env": {
        "OPENAI_API_KEY": "${input:openai-api-key}",
        "GEMINI_API_KEY": "${input:gemini-api-key}"
      }
    }
  }
}

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

VisualSpec in other clients