#!/usr/bin/env python3
"""
MCP Agent API - Unified Command Line Interface

This script provides the main entry point for the MCP Agent API.
It follows the MCP SDK best practices for executable scripts.
"""

import sys
import os
import logging

# Configure logging
logging.basicConfig(
    level=logging.INFO,
    format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
)
logger = logging.getLogger("mcp-agentapi")

# Add the parent directory to the Python path to find the unified CLI module
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if parent_dir not in sys.path:
    sys.path.insert(0, parent_dir)

# Import the CLI module
from mcp_agentapi.cli import cli_main


if __name__ == "__main__":
    sys.exit(cli_main())
