Skip to main content
Glama

MCP Server AntV

Official
by antvis
validator.ts848 B
import { z } from 'zod'; /** * Generic schema validator * @param schema Zod schema * @param args Arguments to validate * @returns Validation result */ export function validateSchema( schema: z.ZodType<any>, args: any, ): { success: boolean; errorMessage?: string } { try { schema.parse(args); return { success: true }; } catch (error) { if (error instanceof z.ZodError) { const errorMessages = error.errors.map((err) => { const path = err.path.join('.'); return path ? `${path}: ${err.message}` : err.message; }); return { success: false, errorMessage: `Schema validation failed: ${errorMessages.join(', ')}`, }; } return { success: false, errorMessage: `Validation error: ${error instanceof Error ? error.message : String(error)}`, }; } }

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/antvis/mcp-server-antv'

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