Skip to main content
Glama

Convex MCP server

Official
by get-convex
optins.ts820 B
import { OptInToAccept } from "generatedApi"; import { useBBMutation, useBBQuery } from "./api"; export function useHasOptedIn(): { hasOptedIn?: boolean; isLoading?: boolean; optInsWithMessageToAccept?: OptInToAccept[]; } { const { data, isLoading } = useBBQuery({ path: "/optins", pathParams: undefined, swrOptions: { refreshInterval: 0 }, }); if (!data || isLoading) return { isLoading: true }; if (!data.optInsToAccept) { throw new Error("Cannot determine optins status"); } return { hasOptedIn: data.optInsToAccept.length === 0, optInsWithMessageToAccept: data.optInsToAccept, }; } export function useAcceptOptIns() { return useBBMutation({ method: "put", path: "/optins", pathParams: undefined, mutateKey: "/optins", toastOnError: false, }); }

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