Skip to content
VS Code

pixel surgeon for VS Code

io.github.j-east/pixel-surgeon

AI image and video generation, editing, and region repair via Gemini, OpenAI, and Grok.

client:VS Code transport:stdio runtime:npm

Install pixel surgeon in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-api-key",
      "description": "GOOGLE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "openai-api-key",
      "description": "OPENAI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "xai-api-key",
      "description": "XAI_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "pixel-surgeon": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pixel-surgeon-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "${input:google-api-key}",
        "OPENAI_API_KEY": "${input:openai-api-key}",
        "XAI_API_KEY": "${input:xai-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

pixel surgeon in other clients