Skip to main content
Glama

Convex MCP server

Official
by get-convex
notes.ts761 B
import { v } from "convex/values"; import { query, internalMutation } from "./_generated/server"; import { atomicMutators, triggerArgsValidator } from "@convex-dev/triggers"; import { mutationWithTriggers } from "./triggers"; export const { atomicInsert, atomicPatch, atomicReplace, atomicDelete } = atomicMutators("notes"); export const list = query(async (ctx) => { return await ctx.db.query("notes").collect(); }); export const onNote = internalMutation({ args: triggerArgsValidator("notes"), handler: async (ctx, args) => { console.log("NOTE CHANGED", args); }, }); export const insert = mutationWithTriggers({ args: { text: v.string() }, handler: async (ctx, { text }) => { return await ctx.db.insert("notes", { text }); }, });

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