Skip to main content
Glama
test_import.py710 B
#!/usr/bin/env python3 """ Test import of OCR-MCP to check for syntax errors. """ import sys from pathlib import Path # Add src to path for imports src_path = Path(__file__).parent.parent / "src" sys.path.insert(0, str(src_path)) try: print("Testing OCR-MCP import...") from ocr_mcp.server import app print("SUCCESS: Import successful") import asyncio async def test(): tools = await app.get_tools() print(f"SUCCESS: Got {len(tools)} tools") return tools tools = asyncio.run(test()) print(f"Tools: {[str(t) for t in tools]}") except Exception as e: print(f"ERROR: Import failed: {e}") import traceback traceback.print_exc() sys.exit(1)

Latest Blog Posts

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/sandraschi/ocr-mcp'

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