# src/es_mcp/cli.py
import subprocess
import os
import sys

def main():
    binary_path = os.path.join(os.path.dirname(__file__), "elasticsearch-core-mcp-server")
    ret = subprocess.call([binary_path] + sys.argv[1:])
    sys.exit(ret)
