Cotton code
34 lines · 1.2 KB · RustRaw
//! The MCP surface: the catalogue, the tools, and the two halves a handler//! works through.//!//! `catalogue`, `surface` and the recipe library inside `prompts` are the//! committed data; `protocol`, `tool_surface` and `language` read them; `read_db`//! and `writer` are the two halves a tool handler works through; `dispatch` is//! the handler table, and it also carries `Ctx`, `ToolServices` and the rails.//! `tokens` holds the two questions a HANDLER asks of a credential — the token//! store itself is `cotton_server::mcp::tokens`, which re-exports both.//!//! The TRANSPORT is not here: `cotton_server::mcp::server` owns the `/v1/mcp`//! route and the JSON-RPC framing, because that is where axum lives and axum//! is the thing a phone must not link (design P2/P3).//!//! Adding a `pub mod` line here is the whole of the wiring — an undeclared//! module is silently not compiled, which is the failure to watch for.pub mod catalogue;pub mod chat_reads;pub mod dispatch;pub mod handlers;pub mod language;pub mod lane_scope;pub mod object_catalogue;pub mod places;pub mod places_classes;pub mod protocol;pub mod read_db;pub mod record_moves;pub mod sign_in_codes;pub mod surface;pub mod tokens;pub mod tool_surface;pub mod writer;