Skip to main content
Glama
outputMarkdown.ts629 B
import { Command } from "commander"; const getFullCommandPath = (cmd: Command): string => { if (!cmd.parent) return cmd.name(); return `${getFullCommandPath(cmd.parent)} ${cmd.name()}`; }; const displayCommandHelp = (cmd: Command) => { const commandPath = getFullCommandPath(cmd); console.log(`\n## ${commandPath}\n`); console.log("```"); console.log(`${cmd.helpInformation()}`); console.log("```"); cmd.commands.forEach((subCmd) => { displayCommandHelp(subCmd); }); }; export const outputMarkdown = (root: Command) => { root.commands.forEach((cmd: Command) => { displayCommandHelp(cmd); }); };

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/ExpertVagabond/universal-blockchain'

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