Skip to main content
Glama

Simple Document Processing MCP Server

xhr-sync-worker.js711 B
// This is a minimal implementation of a synchronous XMLHttpRequest worker // It's needed by jsdom for synchronous XHR operations self.onmessage = function(e) { const xhr = new XMLHttpRequest(); xhr.open(e.data.method, e.data.url, false); // false = synchronous if (e.data.headers) { Object.keys(e.data.headers).forEach(function(key) { xhr.setRequestHeader(key, e.data.headers[key]); }); } try { xhr.send(e.data.data || null); self.postMessage({ status: xhr.status, statusText: xhr.statusText, headers: xhr.getAllResponseHeaders(), response: xhr.response }); } catch (error) { self.postMessage({ error: error.message }); } };

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/cablate/mcp-doc-forge'

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