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
extractDeploymentNameForWorkOS.ts•371 B
/**
* Extract deployment name from a Convex cloud URL for WorkOS provisioning.
* Returns the deployment name if the URL matches the expected format, null otherwise.
*/
export function extractDeploymentNameForWorkOS(url: string): string | null {
return (
url.match(
/^https:\/\/([a-z]+-[a-z]+-[0-9]+)\.(?:[^.]+\.)?convex\.cloud$/,
)?.[1] ?? null
);
}