Skip to main content
Glama
promptForExample.ts445 B
import { select } from "@inquirer/prompts"; export const promptForExample = async ( directories: { description: string; name: string }[], ): Promise<string> => { const choices = directories.map((dir) => ({ name: `${dir.name}\t${dir.description}`, short: dir.name, value: dir.name, })); const chosenExample = await select({ choices, message: "Which example do you want to create?", }); return chosenExample; };

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