Skip to main content
Glama

Convex MCP server

Official
by get-convex
checkDeploymentInfo.ts862 B
async function sleep(ms: number) { return new Promise((resolve) => { setTimeout(resolve, ms); }); } const MAX_RETRIES = 3; const MAX_RETRIES_DELAY_MS = 500; export async function checkDeploymentInfo( adminKey: string, deploymentUrl: string, ): Promise<boolean | null> { let retries = 0; while (retries < MAX_RETRIES) { try { const resp = await fetch(new URL("/api/check_admin_key", deploymentUrl), { method: "GET", headers: { "Content-Type": "application/json", Authorization: `Convex ${adminKey}`, "Convex-Client": "dashboard-0.0.0", }, }); if (resp.ok) { return true; } if (resp.status === 404) { return null; } } catch (e) { // Do nothing } await sleep(MAX_RETRIES_DELAY_MS); retries++; } return false; }

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