Skip to main content
Glama

Unleash MCP (Feature Toggle)

get-all-environments.ts485 B
import { client } from './unleash-client.js'; import { logger } from '../logger.js'; /** * Get all environments from the Unleash API * @returns Array of environments or null if not available */ export async function getAllEnvironments(): Promise<any[] | null> { try { const response = await client.get('/api/admin/environments'); return response.data.environments || []; } catch (error) { logger.error('Error fetching environments:', 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