Skip to main content
Glama

mcp-google-sheets

agent-image-loading.tsx884 B
import { useEffect, useState } from 'react'; function getAgentProfilePictureUrl(): string { return `https://cdn.activepieces.com/quicknew/agents/robots/robot_${Math.floor( Math.random() * 10000, )}.png`; } interface AgentImageLoadingProps { loading: boolean; } export function AgentImageLoading({ loading }: AgentImageLoadingProps) { const [imageUrl, setImageUrl] = useState(getAgentProfilePictureUrl()); useEffect(() => { if (!loading) return; const interval = setInterval(() => { setImageUrl(getAgentProfilePictureUrl()); }, 200); return () => { clearInterval(interval); }; }, [loading]); return ( <div className="flex items-center justify-center"> <img src={imageUrl} alt="Loading Agent" className="w-24 h-24 rounded-full border shadow-lg transition duration-75" /> </div> ); }

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