Skip to main content
Glama

mcp-google-sheets

json-validator.ts449 B
import { TSchema } from '@sinclair/typebox' import { TypeCompiler } from '@sinclair/typebox/compiler' export function parseAndVerify<F>(schema: TSchema, data: unknown): F { const C = TypeCompiler.Compile(schema) const isValid = C.Check(data) if (isValid) { return data as F } throw new Error( JSON.stringify( [...C.Errors(data)].map(({ path, message }) => ({ path, message })), ), ) }

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