Skip to content
VS Code

infralens for VS Code

io.github.balakrishnagatla/infralens

Read-only cloud cost savings and reliability insights for AI agents: AWS, Azure, Kubernetes.

client:VS Code transport:stdio runtime:pypi

Install infralens in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "infralens-providers",
      "description": "INFRALENS_PROVIDERS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "infralens-regions",
      "description": "INFRALENS_REGIONS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "aws-profile",
      "description": "AWS_PROFILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "infralens-policy",
      "description": "INFRALENS_POLICY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "infralens-actor",
      "description": "INFRALENS_ACTOR",
      "password": true
    }
  ],
  "servers": {
    "infralens": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "infralens-mcp"
      ],
      "env": {
        "INFRALENS_PROVIDERS": "${input:infralens-providers}",
        "INFRALENS_REGIONS": "${input:infralens-regions}",
        "AWS_PROFILE": "${input:aws-profile}",
        "INFRALENS_POLICY": "${input:infralens-policy}",
        "INFRALENS_ACTOR": "${input:infralens-actor}"
      }
    }
  }
}

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

infralens in other clients