print("Starting Nuke MCP...")
try:
    from nuke_mcp_server import mcp
    print("Successfully imported server module")

    def main():
        """Entry point for the nuke-mcp package"""
        print("Calling mcp.run()")
        mcp.run(transport="stdio")
        print("Server run function returned")

    if __name__ == "__main__":
        print("Running main()")
        main()
except Exception as e:
    print(f"Error during import or execution: {str(e)}")
    import traceback
    traceback.print_exc()