"""
mci.py - Main entry point for the MCI CLI Tool

This module provides the main CLI interface for managing MCI (Model Context Interface)
schemas and dynamically running MCP servers using defined MCI toolsets.
"""

import click

from mci.cli.add import add
from mci.cli.install import install
from mci.cli.list import list_command
from mci.cli.run import run
from mci.cli.validate import validate


@click.group()
@click.version_option()
def main():
    """
    MCI CLI - Manage Model Context Interface schemas and run MCP servers.

    Use 'mci COMMAND --help' for more information on a specific command.
    """
    pass


# Register commands
main.add_command(add)
main.add_command(install)
main.add_command(list_command, name="list")
main.add_command(run)
main.add_command(validate)


if __name__ == "__main__":
    main()
