/ruflo-music:music-connect [--token cogmcp_...]from ruflo-music
One-time setup that registers the cogmusic MCP server with Claude Code, enabling music generation and production tools via a Cognitum Music personal access token.
Ships in ruflo-music. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
mcp__cogmusic__* tools are visible yet.claude mcp get cogmusic reports the server missing, disconnected, or unhealthy.Check for an existing, working registration first:
claude mcp get cogmusic
If 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):
https://music.cognitum.one/mcpcogmcp_ and is shown exactly onceRegister 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 to claude mcp add, which stores it in local config, not in conversation history):
claude mcp add cogmusic --env COGMUSIC_TOKEN=cogmcp_... -- npx -y [email protected]
Pin 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 before 0.1.1 have no fetch timeout and fail
create_production calls that run past Node's ~5-minute default (see
ADR-0001).
Verify:
claude mcp get cogmusic
Expect ✔ Connected. If it shows CONNECTION_CLOSED or a 404, the cogmusic npm package version pinned in the command may be stale or unpublished — check npm view cogmusic version and 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 [email protected]
Once connected, the mcp__cogmusic__* tools (list_productions, get_production, create_production, separate_stems, extract_midi, master) become available — proceed to music-generate or music-list.
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 local claude mcp add registration.mcp__cogmusic__* tools still aren't listed after a successful claude mcp get cogmusic, tell the user to start a fresh session.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ruvnet/ruflo --plugin ruflo-music7 skills in this plugin
/music-generateGenerate a new song from a creative brief (genre, mood, language, BPM, theme) via the cogmusic MCP create_production tool/music-getFetch metadata and audio_url for a single production by id/music-listList the account's saved music productions with metadata and audio_url/music-masterRun a mastering pass (LUFS loudness normalization + peak limiting) on an existing production/music-midiExtract MIDI/score from an existing production/music-stemsRun 4-stem separation (vocals/drums/bass/other) on an existing productionOther plugins' skills for the same job