Lacuna Music

السجل الرسمي أدوات المطورين

Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http lacuna-music 'https://www.lacuna.fm/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "lacuna-music": {
            "type": "http",
            "url": "https://www.lacuna.fm/mcp"
        }
    }
}
NPM package lacuna-mcp
Claude Code
claude mcp add lacuna-music -e 'LACUNA_API_KEY=<your lacuna_api_key>' -e 'LACUNA_BASE_URL=<LACUNA_BASE_URL>' -- npx -y lacuna-mcp@0.3.4
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "lacuna-music": {
            "command": "npx",
            "args": [
                "-y",
                "lacuna-mcp@0.3.4"
            ],
            "env": {
                "LACUNA_API_KEY": "<your lacuna_api_key>",
                "LACUNA_BASE_URL": "<LACUNA_BASE_URL>"
            }
        }
    }
}

متغيرات البيئة

  • LACUNA_API_KEY إلزامي سري Lacuna API key from https://www.lacuna.fm/profile/api
  • LACUNA_BASE_URL Override the API base URL (optional).

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Lacuna developer tools
  2. Repository layout
  3. Development
  4. Releasing
  5. Distributing the skill
  6. License

Lacuna developer tools

Open-source SDK, CLI, MCP server, and Agent Skill for the Lacuna Music API. Generate AI music programmatically from any Node 18+ runtime, your shell, an MCP-compatible client, or an AI coding agent that supports the Agent Skills standard.

SurfaceInstallUse case
lacuna-sdknpm install lacuna-sdkTypeScript / JavaScript SDK with webhook verification.
lacuna-toolkitnpx lacuna-toolkitCommand-line interface for one-off generation, scripting, CI.
lacuna-mcpnpx lacuna-mcpModel Context Protocol server for Claude Desktop, Claude Code, Cursor, etc.
lacuna-music skillnpx skills add JOYLINK-LTD/lacuna-toolkitAgent Skill for Claude Code, Codex CLI, Cursor, and other tools that follow the SKILL.md standard.

The three npm packages are released together and share the same API surface. The skill is markdown-only and tracks the latest published packages.


Repository layout

.
├── packages/
│   ├── sdk/                   →  npm: lacuna-sdk
│   ├── cli/                   →  npm: lacuna-toolkit
│   └── mcp/                   →  npm: lacuna-mcp
├── skills/
│   └── lacuna-music/SKILL.md  →  Agent Skill (skills.sh, skillsmp.com, etc.)
├── pnpm-workspace.yaml
├── tsconfig.base.json
└── package.json

This is a pnpm workspace. The CLI and MCP server depend on the SDK via workspace:*, which is rewritten to a real version range on publish. The skill is plain markdown and is not part of the workspace.

Development

pnpm install            # install all workspace deps
pnpm -r run build       # build every package
pnpm -r run typecheck   # typecheck every package
pnpm --filter lacuna-mcp run dev  # iterate on a single package

The SDK must be built before pnpm -r run typecheck can resolve the CLI/MCP packages' types. pnpm -r run build handles dependency order automatically.

Releasing

Each package versions independently from packages/<pkg>/package.json. Bump versions in lockstep, build, then publish:

# bump the version in all three package.jsons + packages/mcp/server.json
# (packages/sdk/src/version.ts is injected from package.json at build time — do not hand-edit)
pnpm -r run build
pnpm --filter lacuna-sdk publish --access public
pnpm --filter lacuna-toolkit publish --access public
pnpm --filter lacuna-mcp publish --access public

workspace:* references in dependencies are rewritten to the published version automatically (pnpm handles this).

Distributing the skill

The skill at skills/lacuna-music/ follows the Agent Skills open standard, so it works with Claude Code, Codex CLI, Cursor, and any other tool that loads SKILL.md files.

There is no submission step for skill marketplaces — they index public GitHub repos automatically:

  • skills.sh (Vercel Labs) ranks skills by anonymous install telemetry. Once the repo is public, anyone can install with npx skills add JOYLINK-LTD/lacuna-toolkit, and installs feed the leaderboard. The CLI auto-discovers SKILL.md files under skills/<name>/.
  • skillsmp.com and claudeskills.info crawl public GitHub repos that contain SKILL.md and a minimum of 2 stars.
  • The official anthropics/skills repo accepts community-contributed skills via PR if you want a canonical listing.

To verify discovery locally:

npx skills add JOYLINK-LTD/lacuna-toolkit

This installs lacuna-music into ~/.claude/skills/lacuna-music/ (and the equivalent for other agents). Edits to skills/lacuna-music/SKILL.md show up on the next skills add.

License

MIT © Louis Tsang

الأسئلة الشائعة

ما هو Lacuna Music؟

Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.

كيف أثبّت Lacuna Music؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http lacuna-music 'https://www.lacuna.fm/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Lacuna Music إلى مفتاح API؟

نعم. يتطلب LACUNA_API_KEY، وتضبطها في إعداداته.

هل Lacuna Music مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Lacuna Music؟

ينشره JOYLINK-LTD. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.