zora_health
Check server and environment diagnostics for the Zora Coins ecosystem, including API key status, wallet connections, RPC availability, and chain information.
Instructions
Returns server and environment diagnostics (API key present, wallet, RPC, chain).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:87-96 (handler)The handler function for the 'zora_health' tool. It returns a JSON object with server name, version, API key status, RPC URL, chain ID, and wallet address.async () => { const res = { server: { name: SERVER_NAME, version: SERVER_VERSION }, apiKeyConfigured: !!apiKey, rpcUrl: baseRpcUrl, chainId, walletAddress: account?.address || null, }; return { content: [{ type: "text", text: json(res) }] }; }
- src/index.ts:81-86 (schema)The schema definition for the 'zora_health' tool, including title, description, and empty input schema (no parameters required).{ title: "Zora Coins server health", description: "Returns server and environment diagnostics (API key present, wallet, RPC, chain).", inputSchema: {}, },
- src/index.ts:79-97 (registration)The registration of the 'zora_health' tool using McpServer.registerTool, including inline schema and handler function.server.registerTool( "zora_health", { title: "Zora Coins server health", description: "Returns server and environment diagnostics (API key present, wallet, RPC, chain).", inputSchema: {}, }, async () => { const res = { server: { name: SERVER_NAME, version: SERVER_VERSION }, apiKeyConfigured: !!apiKey, rpcUrl: baseRpcUrl, chainId, walletAddress: account?.address || null, }; return { content: [{ type: "text", text: json(res) }] }; } );