Skip to main content
Glama

Unleash MCP (Feature Toggle)

get-project-features.ts710 B
import { logger } from '../logger.js'; import { client } from './unleash-client.js'; /** * Get all features for a specific project from the Unleash repository * @param projectId The project ID to fetch features for * @returns Array of project features or null if not available */ export async function getProjectFeatures(projectId: string): Promise<any[] | null> { try { const response = await client.get(`/api/admin/projects/${projectId}/features`); logger.info(`Successfully fetched features for project ${projectId}`); return response.data.features || response.data; } catch (error) { logger.error(`Error fetching features for project ${projectId}:`, error); return null; } }

Implementation Reference

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