Skip to main content
Glama
App.tsx1.05 kB
import { type FC, useRef } from 'react'; import { IntlayerProviderContent } from 'react-intlayer'; import { useLocation } from 'react-router-dom'; import { AppProvider } from './components/AppProvider'; import { AppRouter } from './components/AppRouter'; import { EditorLayout } from './components/Editor/EditorLayout'; import { EditorProvider } from './components/Editor/EditorProvider'; import { IframeController } from './components/Editor/IframeController'; const AppContent: FC = () => { const iframeRef = useRef<HTMLIFrameElement>(null); const location = useLocation(); return ( <EditorProvider iframeRef={iframeRef}> <IntlayerProviderContent disableEditor> <EditorLayout> <IframeController iframeRef={iframeRef} applicationPath={location.pathname} /> </EditorLayout> </IntlayerProviderContent> </EditorProvider> ); }; const App: FC = () => ( <AppRouter> <AppProvider> <AppContent /> </AppProvider> </AppRouter> ); export default App;

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/aymericzip/intlayer'

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