use solidmcp::McpServer;
use tracing::{error, info};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
tracing_subscriber::fmt().with_env_filter("debug").init();
info!("🔌 Starting SolidMCP WebSocket-Only Server Example");
let mut server = McpServer::new().await?;
let port = 3031;
info!("🌐 WebSocket server will be available at:");
info!(" ws://localhost:{}/mcp", port);
info!("📋 Available tools: echo, read_file");
info!("💡 This example focuses on WebSocket connections only");
info!("Press Ctrl+C to stop the server");
if let Err(e) = server.start(port).await {
error!("❌ Server error: {}", e);
return Err(e.into());
}
Ok(())
}