serial_mcp/lib.rs
1//! MCP server for serial port communication.
2//!
3//! The primary interface is [`SerialHandler`], built via
4//! [`SerialHandler::builder`] (or [`SerialHandler::new`] for defaults): an MCP
5//! server surface exposing the 25 serial tools, resources, and prompts over
6//! stdio or streamable HTTP. The `serial-mcp` binary wires the full
7//! configuration surface (`--allowlist`, `--profiles-path`, `--capture-dir`,
8//! buffer budgets). For agent-facing contracts — tool semantics, the RX
9//! cursor model, framing/parser presets, device profiles, and persistent
10//! capture — see the README and the guides under `docs/`.
11//!
12//! The library is published for programmatic server embedding; it is not a
13//! client API.
14
15pub mod buffer_budget;
16pub mod capture_store;
17pub(crate) mod checksums;
18pub mod codec;
19pub mod error;
20pub mod framing;
21pub(crate) mod learning;
22pub mod limits;
23pub mod log_buffer;
24pub mod match_config;
25pub(crate) mod mcp_protocol;
26pub(crate) mod precedence;
27pub mod profile_store;
28pub mod profiles;
29pub mod prompts;
30pub mod resource_events;
31pub mod resources;
32pub mod rx_metadata;
33pub mod rx_ring;
34pub mod rx_session;
35pub mod schema_helpers;
36pub mod security;
37pub mod serial;
38pub mod server;
39pub mod stop_controller;
40pub mod tools;
41pub mod tx_session;
42pub(crate) mod util;
43
44pub use error::{Result, SerialError};
45pub use server::SerialHandler;