Skip to main content
Glama

Convex MCP server

Official
by get-convex
EnvironmentVariables.test.tsx992 B
import { parseEnvVars } from "@common/features/settings/components/EnvironmentVariables"; describe("EnvironmentVariables", () => { describe("parseEnvVars", () => { it("filters comments and empty lines", () => { const input = ` # Empty line for readability DEBUG=true SECRET_KEY="mysecretkey" # Quotes can be used around any value `; const result = parseEnvVars(input); expect(result).toEqual([ { name: "DEBUG", value: "true" }, { name: "SECRET_KEY", value: "mysecretkey" }, ]); }); it("parses for one line", () => { const input = "DEBUG=true"; const result = parseEnvVars(input); expect(result).toEqual([{ name: "DEBUG", value: "true" }]); }); it("filters when lines are invalid", () => { const input = ` # Empty line for readability no equals on this line `; const result = parseEnvVars(input); expect(result).toEqual(null); }); }); });

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