Skip to main content
Glama
polyfills.ts539 B
// Minimal File polyfill for runtimes (e.g., Node 18) lacking global File support. if (typeof globalThis.File === "undefined") { class PolyfilledFile extends Blob { public readonly name: string; public readonly lastModified: number; constructor(bits: BlobPart[], name: string, options: FilePropertyBag = {}) { super(bits, options); this.name = String(name); this.lastModified = options.lastModified ?? Date.now(); } } // @ts-expect-error intentional polyfill globalThis.File = PolyfilledFile; }

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/Valerio357/binance-mcp'

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