Skip to main content
Glama
polyfills.ts627 B
/** * Polyfills for Node.js 19.x compatibility */ // Polyfill for File API (not available in Node.js < 20) if (typeof globalThis.File === 'undefined') { class File extends Blob { name: string; lastModified: number; constructor(chunks: any[], name: string, options?: any) { super(chunks, options); this.name = name; this.lastModified = options?.lastModified || Date.now(); } } (globalThis as any).File = File; } // Polyfill for Blob if needed if (typeof globalThis.Blob === 'undefined') { const { Blob } = require('buffer'); (globalThis as any).Blob = Blob; } export {};

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/JacobFV/mcp-fullstack'

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