//! MCP (Model Context Protocol) server surface.
//!
//! Exposes the OCR pipeline over [`rmcp`], so an MCP client can call a `readtext`
//! tool. [`server`] hosts the handler, [`tools`] defines the tool router, and
//! [`types`] holds the request schemas.
use crateReader;
use crate;
/// Run the MCP stdio server backed by `reader`.
///
/// This is the synchronous entry point the CLI calls: it builds a multi-thread
/// tokio runtime, then blocks on the async stdio server until the client
/// disconnects. Runtime construction failures map to [`OcrError::Inference`].