Skip to main content
Glama

Convex MCP server

Official
by get-convex
validate.ts757 B
export function validateArg( arg: any, idx: number, method: string, argName: string, ) { if (arg === undefined) { throw new TypeError( `Must provide arg ${idx} \`${argName}\` to \`${method}\``, ); } } export function validateArgIsInteger( arg: any, idx: number, method: string, argName: string, ) { if (!Number.isInteger(arg)) { throw new TypeError( `Arg ${idx} \`${argName}\` to \`${method}\` must be an integer`, ); } } export function validateArgIsNonNegativeInteger( arg: any, idx: number, method: string, argName: string, ) { if (!Number.isInteger(arg) || arg < 0) { throw new TypeError( `Arg ${idx} \`${argName}\` to \`${method}\` must be a non-negative integer`, ); } }

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/get-convex/convex-backend'

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