Skip to main content
Glama
markdown.ts717 B
export const header = (level: number, text: string): string => `${'#'.repeat(Math.max(1, level))} ${text}`; export const bold = (label: string, value: string): string => `**${label}:** ${value}`; export const list = (items: string[], bullet = '•'): string => items.map(item => `${bullet} ${item}`).join('\n'); export const blankLine = (): string => ''; export const paragraph = (text: string): string => text; export const section = (title: string, body: string[]): string[] => [header(2, title), ...body, blankLine()]; export const trimWithEllipsis = (text: string, maxLength: number): string => { if (text.length <= maxLength) { return text; } return `${text.slice(0, Math.max(0, maxLength))}...`; };

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/MightyDillah/apple-doc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server