Skip to content
VS Code

PlatformIO for VS Code

io.github.powerdragonfire/platformio.mcp

PlatformIO for AI agents: build, flash, serial monitor, tests, crash decoding, size reports.

client:VS Code transport:stdio runtime:pypi

Install PlatformIO in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "platformio-mcp-policy",
      "description": "PLATFORMIO_MCP_POLICY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "platformio-mcp-project-dir",
      "description": "PLATFORMIO_MCP_PROJECT_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "platformio-mcp-pio",
      "description": "PLATFORMIO_MCP_PIO",
      "password": true
    }
  ],
  "servers": {
    "platformio.mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "platformio.mcp"
      ],
      "env": {
        "PLATFORMIO_MCP_POLICY": "${input:platformio-mcp-policy}",
        "PLATFORMIO_MCP_PROJECT_DIR": "${input:platformio-mcp-project-dir}",
        "PLATFORMIO_MCP_PIO": "${input:platformio-mcp-pio}"
      }
    }
  }
}

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

PlatformIO in other clients