Skip to main content
Glama

Convex MCP server

Official
by get-convex
tac.ts961 B
// Delaying fixing this until we have a good auto-fix import { v } from "convex/values"; import { api } from "./_generated/api"; import { Id } from "./_generated/dataModel"; import { action } from "./_generated/server"; export const tac = action({ args: { author: v.string() }, handler: async ({ runMutation }, { author }) => { await runMutation(api.sendMessage.default, { format: "text", body: "tac", author, }); }, }); // Note that this does not need a action but we are using one to test scheduling // to and from actions. export default action( async ( { runAction, scheduler }, { author }: { author: string }, ): Promise<Id<"_scheduled_functions">> => { // Call another action, that then calls a mutation to write the 'tac. await runAction(api.tac.tac, { author }); // Schedule an action in node to write the 'toe'. return await scheduler.runAfter(1000, api.toe.default, { author }); }, );

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