music-connect
它能做什么
这项技能在 Claude Code 与你自己的 Cognitum Music 账户之间建立连接。适合希望 AI 工具在该账户中制作和管理音乐的人。
适用场景
- ✓当你想生成音乐,但音乐工具还不可用时。
- ✓当音乐连接显示为缺失或已断开时。
- ✓当你需要替换已过期或已被撤销的访问令牌时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-connect/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请连接我的 Cognitum Music 账户,让你可以为我制作歌曲。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能先检查连接是否已经可用。如果不可用,它会指导你在自己的浏览器中创建个人访问令牌,然后请你亲自完成注册,这样令牌就不会进入聊天内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Music Connect
Wires this session up to the user's own Cognitum Music account (music.cognitum.one) via the cogmusic MCP bridge. This is a one-time, per-machine/per-project setup — run it before any other music-* skill if mcp__cogmusic__* tools aren't already loaded.
When to use
- The user asks to generate/produce music and no
mcp__cogmusic__*tools are visible yet. claude mcp get cogmusicreports the server missing, disconnected, or unhealthy.- The user is rotating or replacing an expired/revoked token.
Steps
Check for an existing, working registration first:
claude mcp get cogmusicIf it reports
✔ Connected, you're already set up — stop here.If no token was provided, tell the user exactly how to mint one (this step requires their own browser login — you cannot do it for them):
- Sign in at
https://music.cognitum.one/mcp - Click "Generate connection token" (label it something recognizable, e.g. "Claude Code")
- Copy the raw token — it starts with
cogmcp_and is shown exactly once
- Sign in at
Register the MCP server once you have the token. Do not paste the token into the chat or have the model type it into a command: ask the user to run the registration themselves (in Claude Code,
!claude mcp add ...runs it in this session) so the token never enters the conversation transcript. Never echo it back. Treat it as a secret; it's fine as a one-time argument toclaude mcp add, which stores it in local config, not in conversation history):claude mcp add cogmusic --env COGMUSIC_TOKEN=cogmcp_... -- npx -y cogmusic@0.1.1Pin an exact version (0.1.1 is the current release) instead of
@latest, so a later publish cannot change what runs with your token. Versions before0.1.1have no fetch timeout and failcreate_productioncalls that run past Node's ~5-minute default (see ADR-0001).Verify:
claude mcp get cogmusicExpect
✔ Connected. If it showsCONNECTION_CLOSEDor a 404, thecogmusicnpm package version pinned in the command may be stale or unpublished — checknpm view cogmusic versionand retry with an explicit version.If registration already exists but is unhealthy, remove and re-add rather than editing config by hand:
claude mcp remove cogmusic -s local claude mcp add cogmusic --env COGMUSIC_TOKEN=cogmcp_... -- npx -y cogmusic@0.1.1Once connected, the
mcp__cogmusic__*tools (list_productions,get_production,create_production,separate_stems,extract_midi,master) become available — proceed tomusic-generateormusic-list.
Notes
- The token is a personal access token (PAT) scoped to one Cognitum account, minted and revoked by the user themselves at
music.cognitum.one/mcp— this plugin has no way to mint or revoke one programmatically, and should never attempt to guess, cache elsewhere, or transmit it anywhere other than the localclaude mcp addregistration. - A newly-registered MCP server's tools may not appear until the next Claude Code session — if
mcp__cogmusic__*tools still aren't listed after a successfulclaude mcp get cogmusic, tell the user to start a fresh session.
常见问题
助手会看到我的令牌吗?
不会。注册步骤由你自己完成,因此令牌不会进入对话。
我需要先有账户吗?
需要。设置使用的是你自己的 Cognitum Music 账户。
如果连接已经可用会怎样?
这项技能会提前停止,因为连接已经设置好了。
详情
作者的原始描述
One-time setup — mint a Cognitum Music personal access token and register the cogmusic MCP server with Claude Code
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1660
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。