Skip to main content
Glama

Bucket Feature Flags MCP Server

Official
by reflagcom
urls.ts1.02 kB
import chalk from "chalk"; import slugMod from "slug"; import { DEFAULT_BASE_URL } from "./constants.js"; export type UrlArgs = { id: string; name: string }; export function slug({ id, name }: UrlArgs) { return `${slugMod(name).substring(0, 15)}-${id}`; } export function stripTrailingSlash<T extends string | undefined>(str: T): T { return str?.endsWith("/") ? (str.slice(0, -1) as T) : str; } export const successUrl = (baseUrl: string) => `${baseUrl}/cli-login/success`; export const errorUrl = (baseUrl: string, error: string) => `${baseUrl}/cli-login/error?error=${error}`; export const baseUrlSuffix = (baseUrl: string) => { return baseUrl !== DEFAULT_BASE_URL ? ` at ${chalk.cyan(baseUrl)}` : ""; }; export function environmentUrl(baseUrl: string, environment: UrlArgs): string { return `${baseUrl}/envs/${slug(environment)}`; } export function featureUrl( baseUrl: string, env: UrlArgs, feature: UrlArgs, ): string { return `${environmentUrl(baseUrl, env)}/features/${slug(feature)}`; }

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