zora_update_coin_uri
Update the metadata URI for an existing Zora Coin to modify its token information. Requires owner wallet authorization.
Instructions
Update the token metadata URI for an existing coin. Requires owner wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | ||
| newURI | Yes |
Implementation Reference
- src/index.ts:399-407 (handler)Handler function for zora_update_coin_uri tool. Ensures wallet client is available, calls CoinsSDK.updateCoinURI with coin address and new URI, and returns the result as JSON text content.async ({ coin, newURI }) => { ensureWallet(); const result = await CoinsSDK.updateCoinURI( { coin: coin as any, newURI }, walletClient!, publicClient ); return { content: [{ type: "text", text: json(result) }] }; }
- src/index.ts:390-398 (schema)Input schema and metadata (title, description) for the zora_update_coin_uri tool, using Zod for validation of coin address and newURI.{ title: "Update coin metadata URI", description: "Update the token metadata URI for an existing coin. Requires owner wallet.", inputSchema: { coin: z.string().min(1), newURI: z.string().min(1), }, },
- src/index.ts:388-408 (registration)Registration of the zora_update_coin_uri tool on the MCP server, including schema and handler.server.registerTool( "zora_update_coin_uri", { title: "Update coin metadata URI", description: "Update the token metadata URI for an existing coin. Requires owner wallet.", inputSchema: { coin: z.string().min(1), newURI: z.string().min(1), }, }, async ({ coin, newURI }) => { ensureWallet(); const result = await CoinsSDK.updateCoinURI( { coin: coin as any, newURI }, walletClient!, publicClient ); return { content: [{ type: "text", text: json(result) }] }; } );