Skip to main content
Glama

Convex MCP server

Official
by get-convex
simple.ts666 B
import { v } from "convex/values"; import { action } from "./_generated/server"; export const hello = action({ args: { somebody: v.string() }, returns: v.string(), handler: async (_ctx, { somebody }: { somebody: string }) => { console.log(`Aloha, ${somebody}!`); return `Aloha, ${somebody}!`; }, }); export const userError = action({ args: {}, handler: async () => { throw new Error("I failed you!"); }, }); function sleep(ms: number) { return new Promise((resolve) => setTimeout(resolve, ms)); } export const userTimeout = action({ args: {}, handler: async () => { await sleep(60 * 60 * 1000); return "Success"; }, });

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