Chuyển đến nội dung
Skillpedia
Âm thanh và giọng nói81k · #1660

music-connect

Skill này làm gì

Skill này thiết lập kết nối giữa Claude Code và tài khoản Cognitum Music của chính bạn. Nó dành cho người muốn công cụ AI tạo và quản lý nhạc trong tài khoản đó.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo nhạc nhưng các công cụ nhạc chưa khả dụng.
  • ✓Khi kết nối nhạc hiển thị là thiếu hoặc đã ngắt.
  • ✓Khi bạn cần thay token truy cập đã hết hạn hoặc bị thu hồi.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-connect/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-connect/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy kết nối tài khoản Cognitum Music của tôi để bạn có thể làm bài hát cho tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill trước hết kiểm tra xem kết nối có hoạt động không. Nếu không, nó hướng dẫn bạn tạo một personal access token trong trình duyệt của mình, rồi yêu cầu bạn tự đăng ký token để token không đi vào khung chat.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 cogmusic reports the server missing, disconnected, or unhealthy.
  • The user is rotating or replacing an expired/revoked token.

Steps

  1. Check for an existing, working registration first:

    claude mcp get cogmusic
    

    If it reports ✔ Connected, you're already set up — stop here.

  2. 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
  3. 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 to claude 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.1
    

    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).

  4. 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.

  5. 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.1
    
  6. 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.

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 local claude mcp add registration.
  • 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 successful claude mcp get cogmusic, tell the user to start a fresh session.
Câu hỏi thường gặp

Trợ lý có thấy token của tôi không?

Không. Bạn tự chạy bước đăng ký, nên token không đi vào cuộc trò chuyện.

Tôi có cần tài khoản trước không?

Có. Thiết lập dùng tài khoản Cognitum Music của chính bạn.

Điều gì xảy ra nếu kết nối đã hoạt động?

Skill dừng sớm, vì kết nối đã được thiết lập.

Chi tiết

Mô tả gốc của tác giả

One-time setup — mint a Cognitum Music personal access token and register the cogmusic MCP server with Claude Code

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1660
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự