Skip to main content
Glama

Convex MCP server

Official
by get-convex
environmentVariables.ts1.07 kB
import { SWRConfiguration } from "swr"; import { ProjectEnvVarConfig } from "@common/features/settings/lib/types"; import { useBBMutation, useBBQuery } from "api/api"; export type ProjectEnvironmentVariable = { name: string; value: string; }; export function useProjectEnvironmentVariables( projectId?: number, refreshInterval?: SWRConfiguration["refreshInterval"], ): { configs: ProjectEnvVarConfig[] } | undefined { const { data } = useBBQuery({ path: `/projects/{project_id}/environment_variables/list`, pathParams: { project_id: projectId?.toString() || "", }, swrOptions: { refreshInterval }, }); return data; } export function useUpdateProjectEnvVars(projectId?: number) { return useBBMutation({ path: "/projects/{project_id}/environment_variables/update_batch", pathParams: { project_id: projectId?.toString() || "" }, mutateKey: `/projects/{project_id}/environment_variables/list`, mutatePathParams: { project_id: projectId?.toString() || "" }, successToast: "Environment variables updated.", }); }

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