Skip to main content
Glama

Convex MCP server

Official
by get-convex
referrals.ts1 kB
import { useBBMutation, useBBQuery } from "./api"; export function useReferralCode(code: string) { const { data } = useBBQuery({ path: "/validate_referral_code", pathParams: undefined, queryParams: { code, }, }); if (data === undefined) { return undefined; } if (data === "Invalid") { return { valid: false as const, }; } return { valid: true as const, teamName: data.Valid.teamName, exhausted: data.Valid.exhausted, }; } export function useReferralState(teamId?: number) { const { data } = useBBQuery({ path: "/teams/{team_id}/referral_state", pathParams: { team_id: teamId?.toString() || "", }, }); return data; } export function useApplyReferralCode(teamId?: number) { return useBBMutation({ path: "/teams/{team_id}/apply_referral_code", pathParams: { team_id: teamId?.toString() || "", }, successToast: "Congrats! Your referral code has been applied successfully.", }); }

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