Skip to main content
Glama
App.tsx1.29 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { AppShell, ErrorBoundary, Loading, Logo, useMedplum, useMedplumProfile } from '@medplum/react'; import { IconHome } from '@tabler/icons-react'; import { Suspense } from 'react'; import type { JSX } from 'react'; import { Route, Routes, useLocation } from 'react-router'; import { HomePage } from './pages/HomePage'; import { LandingPage } from './pages/LandingPage'; import { SignInPage } from './pages/SignInPage'; export function App(): JSX.Element | null { const medplum = useMedplum(); const location = useLocation(); const profile = useMedplumProfile(); if (medplum.isLoading()) { return null; } return ( <AppShell logo={<Logo size={24} />} menus={[{ links: [{ label: 'Home', href: '/', icon: <IconHome /> }] }]} resourceTypeSearchDisabled={true} headerSearchDisabled={true} > <ErrorBoundary key={location.key}> <Suspense fallback={<Loading />}> <Routes> <Route path="/" element={profile ? <HomePage /> : <LandingPage />} /> <Route path="/signin" element={<SignInPage />} /> </Routes> </Suspense> </ErrorBoundary> </AppShell> ); }

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/medplum/medplum'

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