Skip to main content
Glama

Bucket Feature Flags MCP Server

Official
by reflagcom
file.ts749 B
import { access, constants } from "node:fs/promises"; import os from "node:os"; import { join } from "node:path"; /** * Checks if a file exists at the given path. * @param path The path to the file. * @returns True if the file exists, false otherwise. */ export async function fileExists(path: string): Promise<boolean> { try { await access(path, constants.F_OK); return true; } catch { return false; } } // Helper to resolve home directory export const resolvePath = (p: string) => { return join( ...p.split("/").map((part) => { if (part === "~") { return os.homedir(); } else if (part === "@") { return process.env.APPDATA ?? ""; } else { return part; } }), ); };

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