Skip to main content
Glama

Convex MCP server

Official
by get-convex
functions.after.ts657 B
import { v } from "convex/values"; import { query, mutation } from "./_generated/server"; export const sampleQuery = query({ args: { id: v.id("documents"), }, handler: async (ctx, { id }) => { return await ctx.db.get("documents", id); }, }); export const sampleMutation = mutation({ args: {}, handler: async (ctx) => { const id = await ctx.db.insert("documents", { name: "test", }); await ctx.db.get("documents", id); await ctx.db.replace("documents", id, { name: "test2", }); await ctx.db.patch("documents", id, { name: "test3", }); await ctx.db.delete("documents", id); }, });

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