causa_extension/lib.rs
1//! causa-extension — `DynamicToolSource` adapters over the kernel ports.
2//!
3//! Each capability lives behind its own Cargo feature so offline hosts pay
4//! for nothing they do not use. The first (and currently only) adapter is
5//! the first-class MCP client (`mcp` feature, on by default).
6//!
7//! # Adding an adapter
8//!
9//! A new adapter is a new module gated on a new feature (`dep:`-gated
10//! heavy dependencies), following the `mcp` module's shape: implement the
11//! kernel's `DynamicToolSource` port, expose only kernel port vocabulary,
12//! and keep transport details inside the module.
13
14#![deny(unsafe_code)]
15#![deny(missing_docs)]
16
17#[cfg(feature = "mcp")]
18pub mod mcp;
19
20#[cfg(feature = "mcp")]
21pub use mcp::{McpToolAnnotations, McpToolSource};