Skip to main content
Glama
ResourceAvatar.utils.ts367 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 export function getInitials(input: string): string { const words = input.split(' ').filter(Boolean); if (words.length > 1) { return words[0][0] + words.at(-1)?.at(0); } if (words.length === 1) { return words[0][0]; } return ''; }

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