Skip to content
VS Code

Harbor for VS Code

io.github.oreondev/harbor-mcp

Read-only access to Harbor: projects, artifacts, vulnerabilities, robots, replication, agent skills.

client:VS Code transport:stdio runtime:oci

Install Harbor in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "harbor-url",
      "description": "HARBOR_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "harbor-username",
      "description": "HARBOR_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "harbor-password",
      "description": "HARBOR_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "harbor-insecure-skip-verify",
      "description": "HARBOR_INSECURE_SKIP_VERIFY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "harbor-mcp-rate",
      "description": "HARBOR_MCP_RATE",
      "password": true
    }
  ],
  "servers": {
    "harbor-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/oreondev/harbor-mcp:0.2.0"
      ],
      "env": {
        "HARBOR_URL": "${input:harbor-url}",
        "HARBOR_USERNAME": "${input:harbor-username}",
        "HARBOR_PASSWORD": "${input:harbor-password}",
        "HARBOR_INSECURE_SKIP_VERIFY": "${input:harbor-insecure-skip-verify}",
        "HARBOR_MCP_RATE": "${input:harbor-mcp-rate}"
      }
    }
  }
}

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

Harbor in other clients