Skip to main content
Glama

Convex MCP server

Official
by get-convex
index.test.ts1.07 kB
import { test, describe, expect } from "vitest"; import { validateDeploymentUrl } from "./index.js"; describe("validateDeploymentUrl", () => { test("localhost is valid", () => { validateDeploymentUrl("http://127.0.0.1:8000"); validateDeploymentUrl("http://localhost:8000"); validateDeploymentUrl("http://0.0.0.0:8000"); }); test("real URLs are valid", () => { validateDeploymentUrl("https://small-mouse-123.convex.cloud"); }); test("vanity domain works", () => { validateDeploymentUrl("https://tshirts.com"); }); test("wrong protocol throws", () => { expect(() => validateDeploymentUrl("ws://small-mouse-123.convex.cloud"), ).toThrow("Invalid deployment address"); }); test("invalid url throws", () => { expect(() => validateDeploymentUrl("https://:small-mouse-123:")).toThrow( "Invalid deployment address", ); }); test(".convex.site domain throws", () => { expect(() => validateDeploymentUrl("https://small-mouse-123.convex.site"), ).toThrow("Invalid deployment address"); }); });

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