UNPKG

pixellab-mcp

Version:

MCP server for PixelLab pixel art generation and manipulation. Usage: pixellab-mcp --secret=your-key

20 lines (19 loc) 519 B
import { z } from "zod"; import { toMcpError } from "../utils.js"; export const getBalanceSchema = z.object({}); export async function getBalance(args, client) { try { const balance = await client.getBalance(); return { content: [ { type: "text", text: `PixelLab Balance: $${balance.usd} USD\nAccount status: Active`, }, ], }; } catch (error) { return toMcpError(error); } }