Skip to main content
Glama

Convex MCP server

Official
by get-convex
sendMessage.ts691 B
import { mutation } from "./_generated/server"; // Send a message to the given chat channel. export default mutation({ handler: async ( { db }, { format, body, author, extras, }: { format: "text" | "giphy"; body: string; author: string; extras?: any }, ) => { console.log("running sendMessage mutation"); const message = { body, author, format, extras, }; await db.insert("messages", message); }, }); export const clearMessages = mutation({ args: {}, handler: async (ctx) => { for (const message of await ctx.db.query("messages").collect()) { await ctx.db.delete(message._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