mod.rs 858 Bytes
Newer Older
1
2
3
4
//! Model Context Protocol (MCP) client implementation.
//!
//! Provides MCP client functionality including tools, prompts, resources, and OAuth.
//! Supports stdio, SSE, and HTTP transports with connection pooling and caching.
5

6
pub mod config;
7
pub mod connection_pool;
8
pub mod error;
9
10
pub mod inventory;
pub mod manager;
11
pub mod oauth;
12
pub mod proxy;
13
pub mod tool_args;
14
15

// Re-export the main types for convenience
16
17
pub use config::{
    InventoryConfig, McpConfig, McpPoolConfig, McpProxyConfig, McpServerConfig, McpTransport,
18
    Prompt, RawResource, Tool, WarmupServer,
19
20
};
pub use connection_pool::{CachedConnection, McpConnectionPool, PoolStats};
21
pub use error::{McpError, McpResult};
22
23
24
pub use inventory::ToolInventory;
pub use manager::{McpManager, McpManagerStats};
pub use proxy::{create_http_client, resolve_proxy_config};
25
pub use tool_args::ToolArgs;