Skip to main content
Glama

Unleash MCP (Feature Toggle)

get-feature-flag.ts584 B
import { logger } from '../logger.js'; import { client } from './unleash-client.js'; /** * Get a specific feature flag from the Unleash repository * @param flagName Name of the feature flag * @returns Feature flag data or null if not found/available */ export async function getFeatureFlag(flagName: string): Promise<any | null> { try { const response = await client.get(`/api/client/features/${flagName}`); logger.log(response); return response.data; } catch (error) { logger.error(`Error fetching feature flag ${flagName}:`, error); return null; } }

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/cuongtl1992/unleash-mcp'

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