Skip to main content
Glama

Convex MCP server

Official
by get-convex
stringifyValue.test.ts1.03 kB
import { stringifyValue } from "@common/lib/stringifyValue"; describe("stringifyValue", () => { test.each([ [null, "null"], [BigInt(123), "123n"], [123, "123"], [true, "true"], ["single line string", '"single line string"'], ["multi\nline\nstring", "`multi\nline\nstring`"], [new ArrayBuffer(8), 'Bytes("AAAAAAAAAAA=")'], [[1, 2, 3], "[1, 2, 3]"], [{ key: "value" }, '{ key: "value" }'], [{ "key with spaces": "value" }, '{ "key with spaces": "value" }'], [{ a: `\`\`` }, '{ a: "``" }'], [{ a: `\`\${}\`` }, '{ a: "`${}`" }'], [{ '"': "value" }, '{ \'"\': "value" }'], [{ '\\"': "value" }, '{ \'\\\\"\': "value" }'], [{ "\\": "value" }, '{ "\\\\": "value" }'], [ "super-long-string-that-is-longer-than-the-print-width-and-should-not-be-indented", '"super-long-string-that-is-longer-than-the-print-width-and-should-not-be-indented"', ], ])("stringifyValue(%p)", (value, expected) => { expect(stringifyValue(value, true)).toBe(expected); }); });

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