"""
PowerBI MCP Server

A Model Context Protocol server for interacting with PowerBI REST API.
"""

__version__ = "0.1.2"
__author__ = "Gurvinder Dhillon"
__description__ = "MCP server for PowerBI REST API interactions & run DAX queries."

from .server import mcp


def main():
    """Main entry point for the PowerBI MCP server"""
    import os
    import logging

    logger = logging.getLogger(__name__)
    transport = os.getenv("MCP_TRANSPORT", "stdio")
    logger.info(f"Starting PowerBI MCP Server via transport: {transport}")
    mcp.run(transport=transport)


__all__ = ["mcp", "main"]
