Skip to main content
Glama

Convex MCP server

Official
by get-convex
size_errors.ts830 B
import { api } from "./_generated/api"; import { action, mutation, query } from "./_generated/server"; export const queryThrowsNestingError = query(() => { let result: any = 1; // 65 levels is too many for (let i = 0; i < 65; i++) { result = [result]; } return result; }); export const queryDoesNotThrowNestingError = query(() => { let result: any = 1; // 64 levels is ok for (let i = 0; i < 64; i++) { result = [result]; } return result; }); export const writeToNowhere = mutation(async (_, _args: any) => {}); export const actionThrowsArgumentNestingError = action(async (ctx) => { let nested: any = 1; // 64 levels plus 1 for arguments object is too many for (let i = 0; i < 64; i++) { nested = [nested]; } await ctx.runMutation(api.size_errors.writeToNowhere, { x: nested }); });

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