Skip to main content
Glama

mcp-google-sheets

ai-credits-limit-alert.tsx1.03 kB
import { t } from 'i18next'; import { projectHooks } from '@/hooks/project-hooks'; import { isNil } from '@activepieces/shared'; import { LimitAlert } from './limit-alert'; export const AiCreditsLimitAlert = () => { const { project } = projectHooks.useCurrentProject(); //for ce edition, we don't have plan and usage if (isNil(project?.plan?.aiCredits) || isNil(project?.usage?.aiCredits)) { return null; } const aiCreditsUsagePercentage = project.usage.aiCredits / project.plan.aiCredits; return ( <LimitAlert fullUsageWarningNote={t( 'When a project AI credits limit is reached, all flows using universal AI pieces or agents and MCP servers will fail.', )} usagePercentage={aiCreditsUsagePercentage} getPercentageNote={(limitWarningPercentage) => { return `${t('AI Credits Usage Exceeded')} ${ limitWarningPercentage * 100 }% ${t('of the Allowed Limit.')} `; }} /> ); }; AiCreditsLimitAlert.displayName = 'AiCreditsLimitAlert';

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/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server