Skip to main content
Glama

Convex MCP server

Official
by get-convex
latestExport.ts1.05 kB
import { Export } from "./common"; import { queryGeneric, queryPrivateSystem } from "../secretSystemTables"; export default queryPrivateSystem({ args: {}, handler: async function ({ db }): Promise<Export | null> { return await db .query("_exports") .withIndex("by_requestor", (q) => q.eq("requestor", "snapshotExport")) .order("desc") .first(); }, }); export const latestCloudExport = queryPrivateSystem({ args: {}, handler: async function ({ db }): Promise<Export | null> { return await db .query("_exports") .withIndex("by_requestor", (q) => q.eq("requestor", "cloudBackup")) .order("desc") .first(); }, }); export const canExportFileStorage = queryGeneric({ args: {}, handler: async (ctx) => { // Allow files to be exported if the `_storage` table number matches // the default table number, which is in this ID. const sampleStorageId = "kg27rxfv99gzp01wmph0gvt92d6hnvy6"; return ctx.db.system.normalizeId("_storage", sampleStorageId) !== null; }, });

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