"""Delimit CLI — Python entry point."""

import subprocess
import sys


def main():
    """Run the Delimit CLI via npx or show install instructions."""
    try:
        result = subprocess.run(
            ["npx", "delimit-cli"] + sys.argv[1:],
            check=False,
        )
        sys.exit(result.returncode)
    except FileNotFoundError:
        print("Delimit CLI requires Node.js. Install with:")
        print("  npx delimit-cli setup")
        print()
        print("Or use the Python MCP server directly:")
        print("  python -m delimit.server")
        sys.exit(1)


if __name__ == "__main__":
    main()
