Expand description
§dravr-tronc
Shared MCP server infrastructure for dravr-xxx microservices.
Provides JSON-RPC 2.0 protocol types, a generic McpServer<S>,
stdio/HTTP transports, bearer auth middleware, health check traits,
CLI argument parsing, and tracing initialization.
§Quick Start
ⓘ
use dravr_tronc::mcp::{McpServer, ToolRegistry};
use dravr_tronc::server::cli::ServerArgs;
let registry = ToolRegistry::<MyState>::new();
let state = Arc::new(RwLock::new(MyState::default()));
let server = Arc::new(McpServer::new("my-server", "0.1.0", registry, state));Re-exports§
pub use mcp::auth::AuthError;pub use mcp::auth::AuthHook;pub use mcp::server::McpServer;pub use mcp::tool::McpTool;pub use mcp::tool::ToolCapabilities;pub use mcp::tool::ToolContext;pub use mcp::tool::ToolRegistry;pub use mcp::auth;pub use mcp::modern;pub use mcp::protocol;pub use mcp::schema;pub use mcp::transport;