Skip to main content
Glama

Convex MCP server

Official
by get-convex
react_client.test.ts881 B
import { ConvexReactClient } from "convex/react"; import { api } from "./convex/_generated/api"; import { opts } from "./test_helpers"; import { deploymentUrl } from "./common"; let client: ConvexReactClient; beforeEach(() => { client = new ConvexReactClient(deploymentUrl, opts); }); afterEach(async () => { await client.mutation(api.cleanUp.default); await client.close(); }); describe("Single-shot queries", () => { test("don't update", async () => { const queryPromise = client.query(api.getUsers.default); expect(await queryPromise).toEqual([]); await client.mutation(api.addUser.default, { name: "john" }); expect(await queryPromise).toEqual([]); expect(await client.query(api.getUsers.default)).toHaveLength(1); }); test("throw errors", async () => { await expect(() => client.query(api.error.default)).rejects.toThrow(); }); });

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