Skip to main content
Glama
main.tsx1.3 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { MantineProvider, createTheme } from '@mantine/core'; import '@mantine/core/styles.css'; import { MedplumClient } from '@medplum/core'; import { MedplumProvider } from '@medplum/react'; import '@medplum/react/styles.css'; import { StrictMode } from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter } from 'react-router'; import App from './App.tsx'; const root = document.getElementById('root'); if (!root) { throw new Error('#root not found in HTML!'); } 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 medplum = new MedplumClient({ onUnauthenticated: () => (window.location.href = '/'), baseUrl: 'http://localhost:8103/', }); ReactDOM.createRoot(root).render( <StrictMode> <BrowserRouter> <MedplumProvider medplum={medplum}> <MantineProvider theme={theme}> <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