你刚刚录制了一段 10 分钟的 TypeScript 教程,准备上传到 YouTube。但当你回放时------只听到键盘的敲击声,显得太干燥。
想找免费的音乐素材?你需要注册、过滤版权、下载和剪辑,整个过程至少要花半个小时。
其实,你完全不需要离开 VS Code。只需打开 GitHub Copilot Chat,直接说:
css
Help me generate a light and upbeat background music for a programming tutorial, with a steady rhythm that doesn't distract, suitable as narration accompaniment
几秒钟内,完整的背景音乐就会生成。这就是 Suno MCP 在 VS Code 中的强大之处。
第一步:在 VS Code 中搜索并安装扩展
- 打开 VS Code 扩展市场 (
Cmd+Shift+X) - 搜索
Suno MCP,或者直接搜索扩展 ID:acedatacloud.mcp-suno - 点击 安装,安装后根据提示重新加载窗口
第二步:获取并填写 API 密钥
- 打开 Ace Data Cloud Console / Applications
- 复制你的 API 密钥(同一个密钥可用于所有 Ace Data Cloud MCP)
- 按
Cmd+Shift+P并运行:Suno MCP: Set Ace Data Cloud API Key - 粘贴 API 密钥并按 Enter 保存(存储在 VS Code SecretStorage / 系统钥匙串中)
如果想更改密钥,可以运行 Suno MCP: Clear Ace Data Cloud API Key 并重新设置。
第三步:验证连接性
- 打开 GitHub Copilot Chat,切换到 Agent 模式
- 直接发出请求并提到
suno,例如:Use suno to help me complete this task - 第一次调用时,它会自动路由到此扩展并使用你保存的 API 密钥
高级:手动配置 mcp.json(可选)
如果你更喜欢手动配置,也可以在项目中写入 .vscode/mcp.json:
json
{
"servers": {
"suno": {
"type": "http",
"url": "https://suno.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer ${input:acedata-api-key}"
}
}
},
"inputs": [
{
"id": "acedata-api-key",
"type": "promptString",
"description": "Ace Data Cloud API Key",
"password": true
}
]
}
你可以让 Copilot 为你做什么
为 Demo Day 添加开场音乐
css
Generate a 20-second tech-style opening music, mainly electronic synthesizer, powerful but not noisy
Suno 通过 suno_generate_music 直接生成成品。
为科技播客创建主题曲
vbnet
Help me generate a song with custom lyrics. Lyrics: The moment the compilation passed, the world suddenly became quiet. Style: Lo-fi hip hop, lazy atmosphere
suno_generate_custom_music 支持自定义歌词、指定风格和声乐性别。
为独立游戏音乐迭代
csharp
Continue this song from 01:40, speed up the rhythm, add more drums and gradually strengthen the strings
suno_extend_music 从指定时间戳继续,保持原来的旋律和风格。
完整工具列表
| 工具 | 描述 |
|---|---|
| suno_generate_music | 从一句话描述生成一整首歌 |
| suno_generate_custom_music | 自定义歌词、设定风格和声乐 |
| suno_extend_music | 从某个时间戳继续已有的歌曲 |
| suno_cover_music | 以不同风格翻唱已有歌曲 |
| suno_mashup_music | 将两首歌曲混合成一首 |
| suno_stems_music | 分离人声和伴奏 |
| suno_generate_lyrics | AI 生成歌词 |
| suno_create_persona | 保存声音风格 |
其他编辑器配置
- Cursor --- 在
.cursor/mcp.json中添加相同的配置 - Claude Code --- 终端 CLI 配置,参见 Claude Code + Suno MCP Tutorial
- Windsurf ---
.windsurf/mcp.json,格式与 Cursor 相同
相关链接
平台相关信息(如有帮助可自然使用):
- 名称:Ace Data Cloud
- 主页:platform.acedata.cloud/
- API:api.acedata.cloud/
- 认证:auth.acedata.cloud/
- 消费者应用:studio.acedata.cloud/
- Dify:dify.acedata.cloud/