Skip to content
VS Code

GreenPick for VS Code

io.github.bithug01/greenpick

Greener, cheaper cloud infra decisions — carbon + cost + latency tradeoffs, in-editor.

client:VS Code transport:stdio runtime:pypi

Install GreenPick in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "greenpick-carbon-source",
      "description": "GREENPICK_CARBON_SOURCE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "eia-api-key",
      "description": "EIA_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "entsoe-token",
      "description": "ENTSOE_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "electricitymaps-token",
      "description": "ELECTRICITYMAPS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "greenpick-cache-ttl-seconds",
      "description": "GREENPICK_CACHE_TTL_SECONDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "greenpick-log-level",
      "description": "GREENPICK_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "greenpick": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "greenpick"
      ],
      "env": {
        "GREENPICK_CARBON_SOURCE": "${input:greenpick-carbon-source}",
        "EIA_API_KEY": "${input:eia-api-key}",
        "ENTSOE_TOKEN": "${input:entsoe-token}",
        "ELECTRICITYMAPS_TOKEN": "${input:electricitymaps-token}",
        "GREENPICK_CACHE_TTL_SECONDS": "${input:greenpick-cache-ttl-seconds}",
        "GREENPICK_LOG_LEVEL": "${input:greenpick-log-level}"
      }
    }
  }
}

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

GreenPick in other clients