Skip to main content
Glama
index.ts1.27 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { MedplumSourceInfraConfig } from '@medplum/core'; import { App } from 'aws-cdk-lib'; import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; import { normalizeInfraConfig } from './config'; import { MedplumStack } from './stack'; export * from './backend'; export * from './cloudtrail'; export * from './frontend'; export * from './stack'; export * from './storage'; export * from './waf'; export async function main(context?: Record<string, string>): Promise<void> { const app = new App({ context }); const configFileName = app.node.tryGetContext('config'); if (!configFileName) { console.log('Missing "config" context variable'); console.log('Usage: cdk deploy -c config=my-config.json'); return; } const config = JSON.parse(readFileSync(resolve(configFileName), 'utf-8')) as MedplumSourceInfraConfig; const normalizedConfig = await normalizeInfraConfig(config); const stack = new MedplumStack(app, normalizedConfig); console.log('Stack', stack.primaryStack.stackId); app.synth(); } if (import.meta.main) { main().catch((err) => { console.error(err); process.exit(1); }); }

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