Skip to main content

ravenrs_mcp/
lib.rs

1//! Embedded RavenRS MCP server, shared by both command line entry points.
2
3mod api;
4mod docs;
5mod expression;
6mod report;
7mod server;
8
9use rmcp::ServiceExt;
10
11/// Serve the read-only RavenRS tools over standard input and output.
12pub async fn serve_stdio() -> Result<(), Box<dyn std::error::Error>> {
13    let service = server::RavenServer::new().serve(rmcp::transport::stdio()).await?;
14    service.waiting().await?;
15    Ok(())
16}