Skip to main content

camel_component_mcp/
lib.rs

1//! camel-component-mcp — Model Context Protocol (MCP) component for rust-camel.
2//!
3//! First-class MCP support (scheme `mcp:`) with dual roles: the Consumer
4//! (server) role — a shared Streamable-HTTP listener serving tool and resource
5//! routes — and the Producer (client) role — `mcp:call` / `mcp:read` dispatch
6//! to remote MCP servers. Protocol baseline is `2026-07-28` (stateless
7//! Discover lifecycle: no sessions, no `Mcp-Session-Id`; a legacy `initialize`
8//! offer is answered fail-closed with `-32022` unless it offers the baseline
9//! version). The rmcp SDK is confined to `src/adapter/` (ADR-0020 pattern).
10
11pub mod adapter;
12pub mod bundle;
13pub mod client;
14pub mod component;
15pub mod config;
16pub mod consumer;
17pub mod endpoint;
18pub mod error;
19pub mod headers;
20pub(crate) mod metadata;
21pub mod producer;
22pub mod registry;
23pub mod types;
24
25pub use bundle::McpBundle;
26pub use component::McpComponent;
27pub use registry::McpServerRegistry;