"""
Entry point for running the MCP server with: python -m pentest_mcp_server
"""

import asyncio
import sys
import logging
from .server import main

if __name__ == "__main__":
    try:
        asyncio.run(main())
    except KeyboardInterrupt:
        logging.info("Server stopped by user")
        sys.exit(0)
    except Exception as e:
        logging.error(f"Server crashed: {e}")
        sys.exit(1)
