import typer

from atopile.logging import get_logger
from atopile.telemetry import capture

logger = get_logger(__name__)


mcp_app = typer.Typer(rich_markup_mode="rich")


@mcp_app.command()
@capture("cli:mcp_start", "cli:mcp_end")
def start(http: bool = False, debug: bool = False):
    """Start the MCP server."""
    from atopile.mcp.mcp_server import run_mcp

    run_mcp(http, debug)
