Skip to main content
Glama
markdown.js419 B
import ejs from 'ejs'; import { join } from 'path'; import { getDirname } from '../common/utils.js'; const templatePath = join(getDirname(import.meta.url), './template/index.ejs'); export function renderMarkdown(data) { return new Promise((resolve, reject) => { ejs.renderFile(templatePath, data, (err, str) => { if (err) { reject(err); return; } resolve(str); }); }); }

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/Shen-zhihao/mcp-web-audit'

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