Skip to main content
Glama

Convex MCP server

Official
by get-convex
MockMonaco.test.tsx925 B
import { useEffectOnce } from "react-use"; describe("MockMonaco", () => { test("make jest happy", () => {}); }); export function MockMonaco({ onChange, defaultValue, value, beforeMount, path, }: { onChange: (v: string) => void; defaultValue: string; value: string; beforeMount?: (monaco: any) => void; path: string; }) { useEffectOnce(() => { beforeMount && beforeMount({ MarkerSeverity: { Error: 8, Hint: 1 }, editor: { getModels: () => [{ uri: { path: `/${path}` } }], setModelMarkers: jest.fn(), }, languages: { typescript: { javascriptDefaults: { setDiagnosticsOptions: () => {} }, }, }, }); }); return ( <input data-testid="mockMonaco" defaultValue={defaultValue} value={value} onChange={(e) => { onChange(e.target.value); }} /> ); }

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