Skip to main content
Glama
main.tsx1.47 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 /// <reference lib="DOM" /> import { MantineProvider, createTheme } from '@mantine/core'; import '@mantine/core/styles.css'; import { Notifications } from '@mantine/notifications'; import '@mantine/notifications/styles.css'; import { MedplumClient } from '@medplum/core'; import { MedplumProvider } from '@medplum/react'; import '@medplum/react/styles.css'; import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router'; import { App } from './App'; import { getConfig } from './config'; const medplum = new MedplumClient({ onUnauthenticated: () => (window.location.href = '/'), baseUrl: getConfig().baseUrl, }); const theme = createTheme({ headings: { sizes: { h1: { fontSize: '1.125rem', fontWeight: '500', lineHeight: '2.0', }, }, }, fontSizes: { xs: '0.6875rem', sm: '0.875rem', md: '0.875rem', lg: '1.0rem', xl: '1.125rem', }, }); const container = document.getElementById('root') as HTMLDivElement; const root = createRoot(container); root.render( <StrictMode> <BrowserRouter> <MedplumProvider medplum={medplum}> <MantineProvider theme={theme}> <Notifications /> <App /> </MantineProvider> </MedplumProvider> </BrowserRouter> </StrictMode> );

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