Skip to content
VS Code

pir mcp for VS Code

io.github.solteris-dev/pir-mcp

Motion sensor for AI agents: tells when a screen region changes or goes still. Scores, never pixels.

client:VS Code transport:stdio runtime:npm

Install pir mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pir-capture-cmd",
      "description": "PIR_CAPTURE_CMD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pir-select-cmd",
      "description": "PIR_SELECT_CMD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pir-window-geometry-cmd",
      "description": "PIR_WINDOW_GEOMETRY_CMD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pir-pick-window-cmd",
      "description": "PIR_PICK_WINDOW_CMD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pir-max-wait-ms",
      "description": "PIR_MAX_WAIT_MS",
      "password": true
    }
  ],
  "servers": {
    "pir-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pir-mcp"
      ],
      "env": {
        "PIR_CAPTURE_CMD": "${input:pir-capture-cmd}",
        "PIR_SELECT_CMD": "${input:pir-select-cmd}",
        "PIR_WINDOW_GEOMETRY_CMD": "${input:pir-window-geometry-cmd}",
        "PIR_PICK_WINDOW_CMD": "${input:pir-pick-window-cmd}",
        "PIR_MAX_WAIT_MS": "${input:pir-max-wait-ms}"
      }
    }
  }
}

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

pir mcp in other clients