Skip to main content
Glama

Convex MCP server

Official
by get-convex
customErrorsNodeActions.ts1.11 kB
"use node"; import { ConvexError } from "convex/values"; import { action } from "./_generated/server"; import { api } from "./_generated/api"; export const nodeActionThrowingConvexError = action(async () => { throw new ConvexError("Boom boom bop"); }); export const nodeActionCallingMutationThrowingConvexError = action( async (ctx) => { await ctx.runMutation(api.customErrors.mutationThrowingConvexError); }, ); export const nodeActionCallingQueryThrowingConvexError = action(async (ctx) => { await ctx.runQuery(api.customErrors.queryThrowingConvexError); }); export const nodeActionCallingQueryThrowingConvexErrorSubclass = action( async (ctx) => { await ctx.runQuery(api.customErrors.queryThrowingConvexErrorSubclass); }, ); export const nodeActionCallingActionThrowingConvexError = action( async (ctx) => { await ctx.runAction(api.customErrors.actionThrowingConvexError); }, ); export const nodeActionCallingNodeActionThrowingConvexError = action( async (ctx) => { await ctx.runAction( api.customErrorsNodeActions.nodeActionThrowingConvexError, ); }, );

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