Skip to main content

embacle_mcp/
lib.rs

1// ABOUTME: Library root re-exporting MCP server modules for use by embacle-server
2// ABOUTME: Delegates protocol, server, and transport to dravr-tronc; provides tools, state, and runner
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 (from dravr-tronc)
15//! - [`ServerState`] / [`SharedState`] — shared server state with provider and runner cache
16//! - [`build_tool_registry`] — default tool registry with all 7 MCP tools
17
18pub mod runner;
19pub mod state;
20pub mod tools;
21
22pub use dravr_tronc::McpServer;
23pub use state::{ServerState, SharedState};
24pub use tools::build_tool_registry;