Skip to content
VS Code

Magic Cloud for VS Code

io.github.polterguy/magic

Generate secured CRUD APIs over your database, run SQL, manage files, tasks and a headless browser

client:VS Code transport:stdio runtime:oci

Install Magic Cloud in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "magic-host",
      "description": "magic_host",
      "password": true
    }
  ],
  "servers": {
    "magic": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/servergardens/magic-aio:v23.6.0"
      ],
      "env": {
        "magic_host": "${input:magic-host}"
      }
    }
  }
}

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

Magic Cloud in other clients