Skip to main content
Glama

Convex MCP server

Official
by get-convex
bundle-server.mjs1.3 kB
// We use an `.mjs` file instead of TypeScript so node can run the script directly. import { bundle, entryPointsByEnvironment } from "../dist/esm/bundler/index.js"; import { oneoffContext } from "../dist/esm/bundler/context.js"; import path from "path"; if (process.argv.length < 3) { throw new Error( "USAGE: node bundle-server.mjs <udf system dir> <system dir>*", ); } const systemDirs = process.argv.slice(3); const out = []; // Only bundle "setup.ts" from `udf/_system`. const udfDir = process.argv[2]; const setupPath = path.join(udfDir, "setup.ts"); const ctx = await oneoffContext({ url: undefined, adminKey: undefined, envFile: undefined, }); const setupBundles = ( await bundle(ctx, process.argv[2], [setupPath], true, "browser") ).modules; if (setupBundles.length !== 1) { throw new Error("Got more than one setup bundle?"); } out.push(...setupBundles); for (const systemDir of systemDirs) { if (path.basename(systemDir) !== "_system") { throw new Error(`Refusing to bundle non-system directory ${systemDir}`); } const entryPoints = await entryPointsByEnvironment(ctx, systemDir, false); const bundles = ( await bundle(ctx, systemDir, entryPoints.isolate, false, "browser") ).modules; out.push(...bundles); } process.stdout.write(JSON.stringify(out));

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