serial-mcp 0.4.2

MCP server for serial port communication. 13 tools (open/read/read_line/write/wait_for/subscribe/...), resources, prompts, task cancellation, stdio + streamable-HTTP transports.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use schemars::JsonSchema;
use serde::Serialize;

use crate::serial::ConnectionSummary;

#[derive(Debug, Serialize, JsonSchema)]
pub struct ConnectionsResource {
    #[schemars(schema_with = "crate::schema_helpers::uint_schema")]
    pub count: usize,
    pub connections: Vec<ConnectionSummary>,
}