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
import { useEffectOnce } from "react-use";
describe("MockMonaco", () => {
// eslint-disable-next-line jest/expect-expect
test("make jest happy", () => {});
});
// eslint-disable-next-line jest/no-export
export function MockMonaco({
onChange,
defaultValue,
value,
beforeMount,
path,
}: {
onChange: (v: string) => void;
defaultValue: string;
value: string;
beforeMount?: (monaco: any) => void;
path: string;
}) {
useEffectOnce(() => {
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);
}}
/>
);
}