Skip to main content
Glama

Convex MCP server

Official
by get-convex
yield.ts677 B
import { DatabaseReader, DatabaseWriter, internalMutation, } from "./_generated/server"; export async function didConvexYield(db: DatabaseReader) { return (await db.query("yield").unique())?.doYouYield ?? false; } export const convexYields = internalMutation(async ({ db }) => { await setConvexYields(db, true); }); export const convexIsReadyToRumble = internalMutation(async ({ db }) => { await setConvexYields(db, false); }); async function setConvexYields(db: DatabaseWriter, isYielding: boolean) { const value = await db.query("yield").unique(); if (value) { await db.delete(value._id); } await db.insert("yield", { doYouYield: isYielding }); }

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