Skip to main content
Glama

Superglue MCP

Official
by superglue-ai
html-markdown-pool.test.ts831 B
import { afterEach, beforeEach, describe, expect, it } from 'vitest'; import { HtmlMarkdownPool } from './html-markdown-pool.js'; describe('HtmlMarkdownPool', () => { let pool: HtmlMarkdownPool; beforeEach(() => { pool = new HtmlMarkdownPool(); }); afterEach(async () => { await pool.shutdown(); }); it('converts simple html to markdown', async () => { const md = await pool.convert('<h1>Hello</h1><p>World</p>'); expect(md).toContain('# Hello'); expect(md).toContain('World'); }); it('runs a few tasks concurrently', async () => { const tasks = Array.from({ length: 6 }, (_, i) => pool.convert(`<h2>T${i}</h2>`)); const results = await Promise.all(tasks); results.forEach((r, i) => expect(r).toContain(`## T${i}`)); }); });

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