use clap::Parser;

#[derive(Parser)]
#[command(
    name = "python-exec-mcp",
    version,
    about = "Python script execution MCP server with safe defaults"
)]
struct Cli {
    /// Start as MCP server (stdio transport).
    #[arg(long)]
    mcp: bool,
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let cli = Cli::parse();
    if cli.mcp {
        python_exec_mcp::mcp::run().await
    } else {
        eprintln!("python-exec-mcp: use --mcp to start as MCP server");
        std::process::exit(1);
    }
}
