Skip to main content
Glama

MCP Documentation Server

by mahawi1992
DocumentationProcessor.test.ts1.27 kB
import { DocumentationProcessor } from '../../src/utils/DocumentationProcessor'; describe('DocumentationProcessor', () => { let processor: DocumentationProcessor; beforeEach(() => { processor = new DocumentationProcessor(process.env.BRAVE_API_KEY || ''); }); describe('processFrameworkDocumentation', () => { it('should process React documentation', async () => { const docs = await processor.processFrameworkDocumentation('react', { version: '18' }); expect(docs.official).toBeDefined(); expect(docs.community).toBeDefined(); expect(docs.tutorials).toBeDefined(); }); it('should process Next.js documentation', async () => { const docs = await processor.processNextjsDocumentation('app router'); expect(docs.official).toBeDefined(); expect(docs.examples).toBeDefined(); }); }); describe('processPythonDocumentation', () => { it('should process Python documentation', async () => { const docs = await processor.processPythonDocumentation('asyncio'); expect(docs.standardLibrary).toBeDefined(); expect(docs.pypi).toBeDefined(); }); }); });

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/mahawi1992/mcp-documentation-server'

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