#!/usr/bin/env python3
"""Wrapper script to run MCP server with proper environment setup"""
import sys
import os
import asyncio
from pathlib import Path
# Add the source directory to Python path
script_dir = Path(__file__).parent.absolute()
sys.path.insert(0, str(script_dir / 'src'))
sys.path.insert(0, str(script_dir))
# Import and run the server
from postgres_mcp_allaccess.server import main
if __name__ == "__main__":
asyncio.run(main())