//! MCP server backend in Rust.
//!
//! Compile with --features http_server for HTTP mode, otherwise stdio mode.

use mcp_backend::McpState;
use std::sync::Arc;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Simple stdio mode for MCP integration
    // The Python wrapper handles the actual MCP protocol
    // This Rust binary provides thread-safe state management
    let state = Arc::new(McpState::new());
    
    // Output ready signal
    println!("Rust MCP backend ready");
    ::std::io::stdout().flush().ok();
    
    // Sleep forever (Python wrapper will manage lifecycle)
    tokio::signal::ctrl_c().await.ok();
    Ok(())
}
