
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 分
請在儲存庫或註冊中心條目中宣告授權條款。