Skip to main content
Glama
reflagcom

Bucket Feature Flags MCP Server

Official
by reflagcom
index.ts708 B
import { h, render } from "preact"; import { ReflagClient } from "../client"; import { toolbarContainerId } from "../ui/constants"; import { ToolbarPosition } from "../ui/types"; import { attachContainer } from "../ui/utils"; import Toolbar from "./Toolbar"; type showToolbarToggleOptions = { reflagClient: ReflagClient; position?: ToolbarPosition; }; export const DEFAULT_PLACEMENT = "bottom-right" as const; export function showToolbarToggle(options: showToolbarToggleOptions) { const shadowRoot = attachContainer(toolbarContainerId); const position: ToolbarPosition = options.position ?? { placement: DEFAULT_PLACEMENT, }; render(h(Toolbar, { ...options, position }), shadowRoot); }

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