Skip to content
VS Code

Agent for VS Code

io.github.holon-sh/agent

Runs a model over the app tools its caller lists, for whoever started the run.

client:VS Code transport:stdio runtime:oci

Install Agent in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "model-url",
      "description": "MODEL_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "model",
      "description": "MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "model-api-key",
      "description": "MODEL_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "agent": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/holonlabs/agent@sha256:7468e200c31947c50d5933d847eafcba8dc65b9704d0b21e43e2ce0773d5b0d5"
      ],
      "env": {
        "MODEL_URL": "${input:model-url}",
        "MODEL": "${input:model}",
        "MODEL_API_KEY": "${input:model-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

Agent in other clients