Skip to main content
Glama

mcp-google-sheets

index.ts901 B
import { z } from "zod" export const propsValidation = { async validateZod<T extends Record<string, unknown>>(props: T, schema: Partial<Record<keyof T, z.ZodType>>): Promise<void> { const schemaObj = z.object( Object.entries(schema).reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}) ) try { await schemaObj.parseAsync(props) } catch (error) { if (error instanceof z.ZodError) { const errors = error.errors.reduce((acc, err) => { const path = err.path.join('.') return { ...acc, [path]: err.message } }, {}) throw new Error(JSON.stringify({ errors }, null, 2)) } throw 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/activepieces/activepieces'

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