zora_update_coin_uri
Update the metadata URI for an existing Zora Coin to modify its token information. Requires owner wallet authorization to change coin data.
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 that ensures a wallet is configured and calls CoinsSDK.updateCoinURI to update the coin's metadata URI using the wallet and public clients.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:394-397 (schema)Zod input schema defining required 'coin' (address) and 'newURI' (string) parameters.inputSchema: { coin: z.string().min(1), newURI: z.string().min(1), },
- src/index.ts:388-408 (registration)Registers the 'zora_update_coin_uri' tool with McpServer, including title, description, input schema, and inline handler function.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) }] }; } );