Skip to main content
Glama

Superglue MCP

Official
by superglue-ai
html-markdown-worker.ts577 B
import { NodeHtmlMarkdown } from 'node-html-markdown'; import { parentPort } from 'worker_threads'; if (!parentPort) { throw new Error('This file must be run as a worker thread'); } parentPort.on('message', ({ html, taskId }) => { try { const markdown = NodeHtmlMarkdown.translate(html); parentPort.postMessage({ taskId, success: true, markdown }); } catch (error) { parentPort.postMessage({ taskId, success: false, error: error instanceof Error ? error.message : 'Unknown error' }); } });

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/superglue-ai/superglue'

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