Skip to main content
Glama

Convex MCP server

Official
by get-convex
tour3Messages.ts701 B
import { v } from "convex/values"; import { mutation } from "./_generated/server"; // @snippet start send // highlight-start import { api } from "./_generated/api"; // highlight-end // ... export const send = mutation({ args: { body: v.string(), author: v.string() }, handler: async (ctx, args) => { const { body, author } = args; // Send a new message. await ctx.db.insert("messages", { body, author }); // highlight-start if (body.startsWith("@ai") && author !== "AI") { // Schedule the chat action to run immediately await ctx.scheduler.runAfter(0, api.ai.chat, { messageBody: body, }); } // highlight-end }, }); // @snippet end send

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