Skip to main content
Glama

Bucket Feature Flags MCP Server

Official
by reflagcom
apps.ts986 B
import chalk from "chalk"; import { Command } from "commander"; import ora from "ora"; import { listApps } from "../services/bootstrap.js"; import { configStore } from "../stores/config.js"; import { handleError } from "../utils/errors.js"; export const listAppsAction = async () => { const baseUrl = configStore.getConfig("baseUrl"); const spinner = ora(`Loading apps from ${chalk.cyan(baseUrl)}...`).start(); try { const apps = listApps(); spinner.succeed(`Loaded apps from ${chalk.cyan(baseUrl)}.`); console.table(apps.map(({ name, id, demo }) => ({ name, id, demo }))); } catch (error) { spinner.fail("Failed to list apps."); handleError(error, "Apps List"); } }; export function registerAppCommands(cli: Command) { const appsCommand = new Command("apps").description("Manage apps."); appsCommand .command("list") .alias("ls") .description("List all available apps.") .action(listAppsAction); cli.addCommand(appsCommand); }

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/reflagcom/bucket-javascript-sdk'

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