Skip to main content
Glama

Convex MCP server

Official
by get-convex
cancelJob.ts963 B
// Delaying fixing this until we have a good auto-fix /* eslint-disable @convex-dev/no-args-without-validator */ import { api } from "./_generated/api"; import { Id } from "./_generated/dataModel"; import { mutation, action } from "./_generated/server"; export const cancelJob = mutation({ handler: async ( { scheduler }, { id }: { id: Id<"_scheduled_functions"> }, ) => { await scheduler.cancel(id); }, }); export const tic = mutation({ handler: async ({ scheduler }): Promise<Id<"_scheduled_functions">> => { return await scheduler.runAfter(0, api.cancelJob.tac); }, }); export const tac = action({ handler: async ({ scheduler, runAction }) => { await sleep(2000); await scheduler.runAfter(0, api.cancelJob.toe); await runAction(api.simple.userTimeout); }, }); export const toe = mutation({ handler: async () => {}, }); function sleep(ms: number) { return new Promise((resolve) => setTimeout(resolve, ms)); }

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