//! binscout-mcp: MCP server over stdio (M6).
use ServiceExt;
use AsyncRwTransport;
use stdio;
/// Inbound stdio line cap: rmcp drops longer lines without a response, so
/// this must sit above the largest line the handler still answers with a
/// proper error — a maxed-out `annotations_import` document plus its
/// JSON-RPC envelope.
const MAX_LINE_BYTES: usize = MAX_TRANSFER_BYTES + 1024 * 1024;
async