pub async fn run() -> CliResult<()>Expand description
Run the CLI application
This is the main entry point for the TurboMCP CLI library. It provides complete MCP protocol coverage with rich output formatting and comprehensive error handling.
Returns a CliResult that the caller can handle appropriately. This allows
the caller to control error formatting, exit codes, and runtime configuration.
ยงExample
use turbomcp_cli::prelude::*;
#[tokio::main]
async fn main() {
if let Err(e) = turbomcp_cli::run().await {
eprintln!("Error: {}", e);
std::process::exit(1);
}
}