Skip to content
VS Code

Music Generation for VS Code

io.github.tobiasfong/music-generation

Generates songs and background music locally with ACE-Step, plus a beat grid for video cuts.

client:VS Code transport:stdio runtime:pypi

Install Music Generation in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "comfy-url",
      "description": "COMFY_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "webcomic-music-comfy-dir",
      "description": "WEBCOMIC_MUSIC_COMFY_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "webcomic-music-comfy-launch",
      "description": "WEBCOMIC_MUSIC_COMFY_LAUNCH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "webcomic-music-autolaunch",
      "description": "WEBCOMIC_MUSIC_AUTOLAUNCH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "webcomic-music-timeout",
      "description": "WEBCOMIC_MUSIC_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "webcomic-music-output",
      "description": "WEBCOMIC_MUSIC_OUTPUT",
      "password": true
    }
  ],
  "servers": {
    "music-generation": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "music-generation-mcp"
      ],
      "env": {
        "COMFY_URL": "${input:comfy-url}",
        "WEBCOMIC_MUSIC_COMFY_DIR": "${input:webcomic-music-comfy-dir}",
        "WEBCOMIC_MUSIC_COMFY_LAUNCH": "${input:webcomic-music-comfy-launch}",
        "WEBCOMIC_MUSIC_AUTOLAUNCH": "${input:webcomic-music-autolaunch}",
        "WEBCOMIC_MUSIC_TIMEOUT": "${input:webcomic-music-timeout}",
        "WEBCOMIC_MUSIC_OUTPUT": "${input:webcomic-music-output}"
      }
    }
  }
}

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

Music Generation in other clients