Skip to main content
Glama

mcp-google-sheets

flag-route-guard.tsx415 B
import { Navigate } from 'react-router-dom'; import { ApFlagId } from '@activepieces/shared'; import { flagsHooks } from '../../hooks/flags-hooks'; export const FlagRouteGuard = ({ flag, children, }: { flag: ApFlagId; children: React.ReactNode; }) => { const { data: flagValue } = flagsHooks.useFlag<boolean>(flag); if (!flagValue) { return <Navigate to="/" replace />; } return children; };

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