Cotton code
58 lines · 1.8 KB · RustRaw
//! The tool handlers, one module per handler file of `packages/server/src/mcp/`.//!//! The contract they code against is the module note at the top of//! `mcp/dispatch.rs`; each group exports `pub fn handlers() -> HandlerGroup`//! and adds ONE line — its module name — to `dispatch`'s `handler_groups!`//! list, which is where `HANDLER_GROUPS` comes from.//!//! `common` is the part every group needs and none of them should own: the//! argument readers `protocol.ts`'s `validateX` functions are built out of, the//! two column stamps Postgres used to write (`created_at`/`updated_at`), the//! workspace's zone and its calendars, and the `summaryOut` shape. It is NOT a//! second query builder — anything table-specific lives with its tools.pub mod albums;/// The pictures a note or a thought shows — one mechanism, two owners. NOT a/// tool group: `notes` and `thoughts` reach it.pub mod attachments;pub mod attendees;pub mod bin;pub mod calls;/// The chat WRITE verbs the owner's own app authors (4m).pub mod chat;pub mod common;pub mod connections;/// The DEVELOPER TOOLS, behind the server's own `COTTON_DEV_TOOLS` switch.pub mod dev;pub mod devices;/// What a phone keeps — `list_keep_rules`, `set_keep_rule`, `clear_keep_rule`,/// registered by the `devices` group.pub mod keep_rules;/// Who may hold a record of a shared database — `set_audience`.pub mod audience;pub mod documents;pub mod emails;pub mod media_analysis;pub mod media_tools;pub mod money;pub mod money_views;pub mod owner;pub mod package;pub mod photos;pub mod phrase;pub mod project_templates;pub mod projects;pub mod moves;pub mod records_1;pub mod records_2;pub mod recurrence;pub mod secrets;pub mod session_bus;pub mod media_repair;pub mod storage;pub mod summaries;pub mod tables;pub mod tool_packages;pub mod videos;