1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Integration prelude for LLM framework integrations (Langchain, etc.)
//!
//! This module provides a comprehensive re-export of types commonly needed when
//! integrating MCP clients with LLM frameworks. It includes everything from the
//! standard prelude plus additional abstractions that are particularly useful for
//! building agent integrations.
//!
//! # Usage
//!
//! For LLM framework integrations, use this instead of the standard prelude:
//!
//! ```rust,no_run
//! use turbomcp_client::integration::*;
//!
//! // Now available:
//! // - Client<T> and ClientBuilder for MCP connections
//! // - Transport trait for generic bounds in agent definitions
//! // - Tool, Resource, Prompt for protocol types
//! // - All handler types for server-initiated requests
//!
//! // Example: Generic function that works with any transport type
//! pub fn process_tool_with_client<T: Transport + 'static>(
//! tool: Tool,
//! client: Client<T>,
//! ) {
//! // Integration code here
//! println!("Tool name: {}", tool.name);
//! }
//! ```
// Re-export the complete standard prelude
pub use crate*;
// Additional re-exports specifically useful for integrations
// (most are already in prelude, but we keep this explicit for documentation)
// Core client types
pub use crateClientBuilder;
// Transport trait - essential for generic bounds
pub use Transport;
// Re-export commonly needed protocol types (already in prelude but documented here)
pub use ;