use clap::Parser;
use std::path::PathBuf;

#[derive(Debug, Parser)]
#[command(name = "spool-mcp", version, about = "spool lifecycle MCP server")]
struct McpCli {
    #[arg(long)]
    config: PathBuf,
    #[arg(long)]
    daemon_bin: Option<PathBuf>,
}

fn main() -> anyhow::Result<()> {
    let cli = McpCli::parse();
    spool::mcp::serve_stdio(cli.config.as_path(), cli.daemon_bin.as_deref())
}
