
Musicwire Mcp
io.github.thatdudealso由 GitHub 账号 thatdudealso 发布v0.1.1更新于 Oct 24, 2026
Paid MusicXML validation, rendering, and automated QC for MCP clients.
概览
Musicwire MCP 让助手通过付费 x402 API 校验和渲染 MusicXML 乐谱,并提供免费的编写指南与来源核验。
- 可以做什么
- 免费获取 MusicXML 编写指南,并免费将产物 SHA-256 与已签名的渲染回执进行比对核验。按次付费执行详细的 MusicXML 校验,以及提交渲染任务,输出用于试听的 MP3 或用于编辑的 MIDI。查看渲染任务状态或轮询至完成,在托管端点上应使用多次短调用而非一次长等待。使用幂等键重试付费请求,可重放原结果而不会产生新的支付授权。
- 适用场景
- 适合助手处理 MusicXML 乐谱、需要自动校验、质量控制或音频与 MIDI 渲染而无需自行搭建流程的场景。也适合核对渲染产物是否与签名回执一致。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 22.5 或更高版本,或连接托管的 Streamable HTTP 端点。MUSICWIRE_API_URL 可选,用于设置 API 基础地址。付费调用需要 MUSICWIRE_X402_PRIVATE_KEY,即一个在 Base 主网或 Base Sepolia 上充值了 USDC 的一次性买家钱包,并需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Musicwire Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
musicwire-mcp
musicwire-mcp is a Model Context Protocol server for Musicwire. It gives an MCP client five tools:
musicwire_compose_guide- get the free MusicXML authoring guide.musicwire_validate- pay for detailed MusicXML validation.musicwire_render- pay to queue a MusicXML render.musicwire_get_job- inspect a render or poll it to completion.musicwire_verify_provenance- free check of an artifact SHA-256 against signed render receipts.
Local MCP clients such as Claude Code and Cursor run this package over stdio:
Hosted MCP clients such as Claude Connectors and Smithery use the public Streamable HTTP endpoint served by the Musicwire API:
That hosted endpoint exposes the same tools and needs no Smithery session config (the listed config schema is an empty object). It does not hold a buyer wallet. musicwire_validate and musicwire_render return HTTP 402 Payment Required with the same x402 quote as POST /v1/validate and POST /v1/render. Retry the identical MCP request with Payment-Signature. Compose guide, job polling, and provenance verify stay free.
Over the hosted endpoint, poll musicwire_get_job with repeated short calls instead of one long wait_for_completion hold: the gateway in front of the hosted endpoint times out requests after roughly 29 seconds, while the render itself continues and stays pollable. Long wait_for_completion waits are fine over stdio.
The only requestable render outputs are MP3 for listening and MIDI for editing. Completed renders also include the source MusicXML, NOTICE.txt, and receipt.json.
Paid calls use x402 Exact USDC on Base. The server reads GET /manifest from the configured API and pays on the network that deployment advertises: Base mainnet (eip155:8453) or Base Sepolia (eip155:84532). It retries a 402 Payment Required response with a signed payment automatically, and never logs or persists the private key.
Install
The package requires Node.js 22.5 or newer. Run the stdio server directly from an MCP client with npx -y musicwire-mcp, or point a Streamable HTTP MCP client at https://musicwire.5432wire.com/mcp.
Configuration
The server starts and serves the free tools without a key. The key is read only when a paid call actually receives 402 Payment Required; if it is missing at that point, the tool call fails with an error telling you to set it. Smithery's hosted listing does not collect these variables: declare no session fields, then pay each musicwire_validate / musicwire_render call with Payment-Signature.
stub mode retries challenges with a non-secret test authorization and is rejected unless MUSICWIRE_API_URL points at localhost, 127.0.0.1, or ::1. It is for Musicwire's explicit local stub profile only. Never use it for a remote API. The hosted /mcp endpoint never enables stub auto-pay and never holds a server-side buyer key.
Fund the buyer wallet on the network the target deployment advertises: real USDC on Base mainnet for the hosted deployment, test USDC on Base Sepolia for a local one. This package never picks the network itself, so it cannot pay on a network the server did not quote, and it refuses any advertised network other than those two. Treat the private key as a secret: inject it through your client environment, do not put it in a repository or client configuration file, and rotate it if exposed.
Claude Code
Add this to the project's .mcp.json, substituting the deployed API URL. Keep the private key in the shell environment that starts Claude Code rather than committing it in this file.
Before starting Claude Code, export a buyer key funded on the network that deployment advertises:
Cursor
Add the same server entry to Cursor's MCP configuration (.cursor/mcp.json for a project, or the equivalent global MCP configuration):
Start Cursor from an environment that exports MUSICWIRE_X402_PRIVATE_KEY; do not store the key in the JSON configuration.
Local, zero-cost development
Run Musicwire with its explicit non-production stub profile, then start the MCP server with stub mode:
The repository's test/mcp-e2e.test.js uses a real stdio MCP session against this payment behavior and exercises every tool. It creates no wallet, uses no credentials, and sends no funds.
Payment behavior
For musicwire_validate and musicwire_render, the package sends the original request first. If Musicwire returns 402, it reads the advertised payment network from GET /manifest, then the x402 client reads the payment requirements, signs an Exact EVM authorization with the configured buyer wallet on that network, and repeats the identical request with Payment-Signature. Musicwire verifies the authorization before work and captures only after quality control passes. Job polling, the compose guide, and provenance verify are free. The hosted Streamable HTTP endpoint returns that 402 to the calling agent instead of paying.
idempotency_key is available on the two paid tools. Reuse it with the same payer when retrying a request to ensure Musicwire replays the original outcome instead of creating another payment authorization. Reusing it with a different payload for that payer returns HTTP 409 and does not charge.
来源:mcp/README.md,提交 2009a6d
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。