Skip to main content
Glama

Convex MCP server

Official
by get-convex
DeploymentAccessTokenList.tsx2.5 kB
import { useState } from "react"; import { TeamAccessTokenResponse } from "generatedApi"; import { AccessTokenListKind } from "api/accessTokens"; import { LoadingTransition } from "@ui/Loading"; import { AccessTokenListItem } from "components/AccessTokenListItem"; import { GenerateDeployKeyWithNameButton, GenerateDeployKeyWithNameButtonProps, DeployKeyGenerationDisabledReason, } from "./GenerateDeployKeyButton"; export function DeploymentAccessTokenList({ identifier, tokenPrefix, accessTokens, kind, disabledReason, buttonProps, header, description, }: { identifier: string; tokenPrefix: string; accessTokens: TeamAccessTokenResponse[] | undefined; kind: AccessTokenListKind; disabledReason: DeployKeyGenerationDisabledReason | null; buttonProps: Omit< GenerateDeployKeyWithNameButtonProps, "onCreateAccessToken" >; header: string; description: React.ReactNode; }) { const [latestToken, setLatestToken] = useState<string | null>(null); return ( <> <div className="mb-2 flex w-full items-center justify-between"> <h4>{header}</h4> <GenerateDeployKeyWithNameButton {...buttonProps} onCreateAccessToken={setLatestToken} /> </div> {description} {disabledReason === null && ( <LoadingTransition loadingProps={{ fullHeight: false, className: "h-14 w-full" }} > {accessTokens && ( <div className="flex w-full flex-col divide-y"> {accessTokens.length > 0 ? ( accessTokens ?.sort((a, b) => b.creationTime - a.creationTime) .map((token) => ( <AccessTokenListItem token={token} identifier={identifier} tokenPrefix={tokenPrefix} kind={kind} key={token.accessToken} shouldShow={ !!latestToken && latestToken.endsWith(token.serializedAccessToken) } showMemberName showCallout /> )) ) : ( <div className="my-6 flex w-full justify-center text-content-secondary"> There are no tokens here yet. </div> )} </div> )} </LoadingTransition> )} </> ); }

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