Skip to main content
Glama

Convex MCP server

Official
by get-convex
test-esm.mjs694 B
// Import everything as ESM to make sure our imports are valid ESM // (. -> ./index.js, ./foo -> ./foo.js, ./foo.ts -> ./foo.js import fs from "fs"; import path, { dirname } from "path"; import { fileURLToPath } from "url"; const __dirname = dirname(fileURLToPath(import.meta.url)); await import("../dist/esm/index.js"); for (const dir of fs.readdirSync(path.join(__dirname, "../dist/esm"))) { if (dir.endsWith("cli")) { // CLI is tested elsewhere, importing it here exits the process continue; } const index = path.join("../dist/esm", dir, "index.js"); const indexAbsolute = path.join(__dirname, index); if (fs.existsSync(indexAbsolute)) { await import(index); } }

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