Skip to main content
Glama

Convex MCP server

Official
by get-convex
api.test.ts758 B
import { test, expect } from "vitest"; import { importPath, moduleIdentifier } from "./api.js"; test("importPath", () => { expect(importPath("foo.ts")).toEqual("foo"); expect(importPath("foo.tsx")).toEqual("foo"); expect(importPath("foo\\bar.ts")).toEqual("foo/bar"); expect(importPath("foo/bar.ts")).toEqual("foo/bar"); }); test("moduleIdentifier", () => { expect(moduleIdentifier("foo.ts")).toEqual("foo"); // This mapping is ambiguous! This is a codegen implementation detail so // this can be changed without requiring changes beyond running codegen. expect(moduleIdentifier("foo/bar.ts")).toEqual("foo_bar"); expect(moduleIdentifier("foo_bar.ts")).toEqual("foo_bar"); expect(moduleIdentifier("foo-bar.ts")).toEqual("foo_bar"); });

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