Skip to main content
Glama

Activepieces MCP Server

by eldoonreval
locked-feature-guard.tsxβ€’1.68 kB
import React from 'react'; import { flagsHooks } from '@/hooks/flags-hooks'; import { ApFlagId } from '@activepieces/shared'; import { FeatureKey, RequestTrial } from './request-trial'; type LockedFeatureGuardProps = { children: React.ReactNode; locked: boolean; lockTitle: string; lockDescription: string; lockVideoUrl?: string; featureKey: FeatureKey; cloudOnlyFeature?: boolean; }; export const LockedFeatureGuard = ({ children, locked, lockTitle, lockDescription, lockVideoUrl, featureKey, cloudOnlyFeature = false, }: LockedFeatureGuardProps) => { const { data: showPlatformDemo } = flagsHooks.useFlag<boolean>( ApFlagId.SHOW_PLATFORM_DEMO, ); if (!locked && (!showPlatformDemo || cloudOnlyFeature)) { return children; } return ( <div className="flex w-full flex-col items-center justify-center gap-2"> <div className="pt-8 text-center flex flex-col gap-2 justify-center items-center"> <h1 className="text-3xl font-bold">{lockTitle}</h1> <div className="text-center w-[485px] my-4 flex flex-col gap-2 justify-center items-center"> <p className="text-md leading-relaxed text-muted-foreground"> {lockDescription} </p> <div className="my-4"> <RequestTrial featureKey={featureKey} /> </div> </div> {lockVideoUrl && ( <video autoPlay loop muted playsInline className="max-w-[70vh] rounded-lg" controls={false} src={lockVideoUrl} /> )} </div> </div> ); }; export default LockedFeatureGuard;

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

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