Skip to main content
Glama
Initializer.tsx346 B
import { useEffect, useRef } from 'react'; import { PLUGIN_ID } from '../pluginId'; type InitializerProps = { setPlugin: (id: string) => void; }; const Initializer = ({ setPlugin }: InitializerProps) => { const ref = useRef(setPlugin); useEffect(() => { ref.current(PLUGIN_ID); }, []); return null; }; export { Initializer };

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/PaulBratslavsky/strapi-content-mcp'

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