embacle_mcp/lib.rs
1// ABOUTME: Library root re-exporting MCP server modules for use by embacle-server
2// ABOUTME: Exposes protocol, server, state, tools, transport, and runner as public modules
3//
4// SPDX-License-Identifier: Apache-2.0
5// Copyright (c) 2026 dravr.ai
6
7//! # embacle-mcp
8//!
9//! MCP server library exposing embacle LLM runners via Model Context Protocol.
10//! Supports stdio and HTTP/SSE transports with provider, model, and multiplex tools.
11//!
12//! ## Re-exports
13//!
14//! - [`McpServer`] — JSON-RPC request dispatcher
15//! - [`ServerState`] / [`SharedState`] — shared server state with provider and runner cache
16//! - [`build_tool_registry`] — default tool registry with all 7 MCP tools
17//! - [`McpTransport`] — transport trait for stdio/HTTP backends
18
19pub mod protocol;
20pub mod runner;
21pub mod server;
22pub mod state;
23pub mod tools;
24pub mod transport;
25
26pub use server::McpServer;
27pub use state::{ServerState, SharedState};
28pub use tools::build_tool_registry;
29pub use transport::McpTransport;