Skip to main content
Glama

MCP Documentation Server

by mahawi1992
PythonAnalyzer.test.ts1.08 kB
import { PythonAnalyzer } from '../../../src/analyzers/PythonAnalyzer'; describe('PythonAnalyzer', () => { let analyzer: PythonAnalyzer; beforeEach(() => { analyzer = new PythonAnalyzer(); }); it('should analyze Python code', () => { const code = ` async def process_data(data: List[Dict]) -> List[Dict]: results = [] for item in data: processed = await process_item(item) results.append(processed) return results `; const analysis = analyzer.analyze(code); expect(analysis.async).toBeDefined(); expect(analysis.typing).toBeDefined(); }); it('should detect type hints', () => { const code = ` from typing import Optional def get_user(user_id: int) -> Optional[Dict]: return {'id': user_id} if user_id else None `; const analysis = analyzer.analyze(code); expect(analysis.typing.typeHints.length).toBeGreaterThan(0); }); });

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