Skip to main content

dravr_canot_server/
lib.rs

1// ABOUTME: Library root re-exporting server modules for integration testing
2// ABOUTME: Enables tests/ to access router, state, types, and handler modules
3//
4// SPDX-License-Identifier: MIT OR Apache-2.0
5// Copyright (c) 2026 dravr.ai
6
7//! # dravr-canot-server
8//!
9//! Unified REST API + MCP server for multi-platform messaging channels.
10//!
11//! ## Endpoints
12//!
13//! - `POST /api/messaging/webhook/:channel` — receive inbound webhooks
14//! - `POST /api/messaging/send` — send outbound messages
15//! - `GET /health` — channel readiness check
16//! - `POST /mcp` — MCP Streamable HTTP (JSON-RPC 2.0, via dravr-canot-mcp)
17//!
18//! ## Modules
19//!
20//! - [`webhook`] — inbound webhook handler with signature verification
21//! - [`send`] — outbound message sending endpoint
22//! - [`health`] — channel health checks
23//! - [`auth`] — optional bearer token authentication
24//! - [`router`] — Axum router wiring all endpoints (REST + MCP)
25//! - [`state`] — re-export of unified state from dravr-canot-mcp
26
27pub mod auth;
28pub mod health;
29pub mod router;
30pub mod send;
31pub mod state;
32pub mod webhook;
33
34pub use state::SharedState;