winx-code-agent 0.2.352

Remote-first Rust MCP runtime with Streamable HTTP, durable PTYs, and guarded agent tools
Documentation
use std::path::PathBuf;

use clap::Parser;
use winx_code_agent::daemon::{default_socket_path, ControlServer};

#[derive(Parser)]
#[command(name = "winxd", version, about = "Long-lived Winx shell daemon")]
struct Cli {
    #[arg(long)]
    socket: Option<PathBuf>,
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    winx_code_agent::os::harden_process();
    let cli = Cli::parse();
    let socket = cli.socket.unwrap_or_else(default_socket_path);
    tracing_subscriber::fmt().with_writer(std::io::stderr).init();
    tracing::info!(socket = %socket.display(), "starting winxd");
    ControlServer::bind(socket).await?.serve().await?;
    Ok(())
}