Skip to main content
Glama

Convex MCP server

Official
by get-convex
misc.ts838 B
import { mutation } from "./_generated/server"; export const init = mutation({ args: {}, handler: async (ctx, _args) => { const users = await ctx.db.query("users").collect(); if (users.length) { return; } await ctx.db.insert("users", { name: "User 1", email: "user1@example.com", }); }, }); export const clearAll = mutation({ args: {}, handler: async (ctx, _args) => { for (const message of await ctx.db.query("messages").collect()) { await ctx.db.delete(message._id); } for (const conversation of await ctx.db.query("conversations").collect()) { await ctx.db.delete(conversation._id); } for (const conversationMember of await ctx.db .query("conversationMembers") .collect()) { await ctx.db.delete(conversationMember._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