//! MCP server of Lutra (layer L5). //! //! `lutra mcp` speaks the Model Context Protocol over stdio so that //! agents can drive Lutra: JSON-RPC 2.0, one message per line //! ([`jsonrpc`]), served by [`server::Server`] in both the modern //! (2026-07-28, per-request metadata) and the legacy (`initialize`) era. //! The tools are generic over the command registry (D16): see [`tools`]. //! Resources are the open buffers. Recent engine events are kept by //! [`events`]. //! //! The crate does not open sockets or start processes itself: the `lutra` //! CLI implements [`remote::Connector`] with the control channel client //! and the single-instance rendezvous (`lutra_control::client`). //! Everything read from stdin or from Lutra is untrusted, capped and //! never panics. pub mod encoding; pub mod events; pub mod jsonrpc; pub mod remote; pub mod server; pub mod tools; pub use remote::{CallError, Connection, Connector}; pub use server::Server;