Skip to main content
Glama
mcp-flows.tsx1.25 kB
import { t } from 'i18next'; import { Badge } from '@/components/ui/badge'; import { PopulatedMcpServer, FlowStatus } from '@activepieces/shared'; export function McpFlows({ mcpServer }: McpFlowsProps) { const flows = mcpServer?.flows ?? []; if (flows.length === 0) { return ( <div className="text-sm text-muted-foreground"> {t('No MCP flows available')} </div> ); } return ( <div className="space-y-2"> {flows.map((flow) => { const isEnabled = flow.status === FlowStatus.ENABLED; return ( <div key={flow.id} className="flex items-center justify-between"> <span className="text-sm font-medium"> {flow.version.displayName} </span> <Badge variant={isEnabled ? 'success' : 'outline'} className="flex items-center gap-1.5" > <div className={`w-2 h-2 rounded-full ${ isEnabled ? 'bg-green-500' : 'bg-gray-400' }`} /> <span>{isEnabled ? t('On') : t('Off')}</span> </Badge> </div> ); })} </div> ); } type McpFlowsProps = { mcpServer: PopulatedMcpServer; };

Latest Blog Posts

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