Skip to main content
Glama

Gumroad

by rmarescu
errors.ts584 B
import pc from "picocolors"; import { ZodError } from "zod"; export const formatZodError = <T>(error: ZodError<T>, label: string): string => { console.log(error.errors); const errorsString = error.errors .map((err) => { const path = err.path.join("."); const prefix = path ? `${pc.cyan(path)}: ` : ""; const receivedInfo = "received" in err && err.received !== "undefined" ? ` (received: ${JSON.stringify(err.received)})` : ""; return `${prefix}${err.message}${receivedInfo}`; }) .join("\n"); return `${label}\n${errorsString}`; };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rmarescu/gumroad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server