Skip to main content

cortex_mcp/
lib.rs

1//! `cortex-mcp` — MCP stdio JSON-RPC 2.0 server for Cortex.
2//!
3//! - [`serve`] — the main stdio JSON-RPC 2.0 loop.
4//! - [`tool_handler`] — the [`ToolHandler`] trait, [`GateId`], [`ToolError`].
5//! - [`tool_registry`] — gate-wiring assertion + method dispatch.
6//! - [`tools`] — concrete tool implementations.
7
8#![deny(unsafe_code, missing_debug_implementations)]
9#![warn(missing_docs)]
10
11pub mod serve;
12pub mod server;
13pub mod tool_handler;
14pub mod tool_registry;
15/// Concrete tool implementations (one module per tool).
16pub mod tools;
17
18pub use server::{serve_stdio, CortexServer};
19pub use tool_handler::{GateId, ToolError, ToolHandler};