Skip to main content
Glama

Flipt MCP Server

Official
by flipt-io
isomorphic-fetch.ts1.06 kB
import {HttpLibrary, RequestContext, ResponseContext} from './http'; import { from, Observable } from '../rxjsStub'; import "whatwg-fetch"; export class IsomorphicFetchHttpLibrary implements HttpLibrary { public send(request: RequestContext): Observable<ResponseContext> { let method = request.getHttpMethod().toString(); let body = request.getBody(); const resultPromise = fetch(request.getUrl(), { method: method, body: body as any, headers: request.getHeaders(), credentials: "same-origin" }).then((resp: any) => { const headers: { [name: string]: string } = {}; resp.headers.forEach((value: string, name: string) => { headers[name] = value; }); const body = { text: () => resp.text(), binary: () => resp.blob() }; return new ResponseContext(resp.status, headers, body); }); return from<Promise<ResponseContext>>(resultPromise); } }

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

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