Skip to main content
Glama

LaunchDarkly MCP Server

Official
by launchdarkly
apierror.ts1.19 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { LaunchDarklyError } from "./launchdarklyerror.js"; /** The fallback error class if no more specific error class is matched */ export class APIError extends LaunchDarklyError { constructor( message: string, httpMeta: { response: Response; request: Request; body: string; }, ) { if (message) { message += `: `; } message += `Status ${httpMeta.response.status}`; const contentType = httpMeta.response.headers.get("content-type") || `""`; if (contentType !== "application/json") { message += ` Content-Type ${ contentType.includes(" ") ? `"${contentType}"` : contentType }`; } const body = httpMeta.body || `""`; message += body.length > 100 ? "\n" : ". "; let bodyDisplay = body; if (body.length > 10000) { const truncated = body.substring(0, 10000); const remaining = body.length - 10000; bodyDisplay = `${truncated}...and ${remaining} more chars`; } message += `Body: ${bodyDisplay}`; message = message.trim(); super(message, httpMeta); this.name = "APIError"; } }

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/launchdarkly/mcp-server'

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