Skip to main content
Glama
script.ts586 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 /** * Dynamically creates a script tag for the specified JavaScript file. * @param src - The JavaScript file URL. * @param onload - Optional callback for the onload event. */ export function createScriptTag(src: string, onload?: () => void): void { const head = document.getElementsByTagName('head')[0]; const script = document.createElement('script'); script.async = true; script.src = src; script.onload = onload ?? null; head.appendChild(script); }

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