mod.rs 1.02 KB
Newer Older
1
2
3
4
5
6
7
8
// MCP Client for SGLang Router
//
// This module provides a complete MCP (Model Context Protocol) client implementation
// supporting multiple transport types (stdio, SSE, HTTP) and all MCP features:
// - Tools: Discovery and execution
// - Prompts: Reusable templates for LLM interactions
// - Resources: File/data access with subscription support
// - OAuth: Secure authentication for remote servers
9

10
pub mod config;
11
pub mod connection_pool;
12
pub mod error;
13
14
pub mod inventory;
pub mod manager;
15
pub mod oauth;
16
pub mod proxy;
17
pub mod tool_args;
18
19

// Re-export the main types for convenience
20
21
22
23
24
pub use config::{
    InventoryConfig, McpConfig, McpPoolConfig, McpProxyConfig, McpServerConfig, McpTransport,
    PromptInfo, ResourceInfo, ToolInfo, WarmupServer,
};
pub use connection_pool::{CachedConnection, McpConnectionPool, PoolStats};
25
pub use error::{McpError, McpResult};
26
27
28
pub use inventory::ToolInventory;
pub use manager::{McpManager, McpManagerStats};
pub use proxy::{create_http_client, resolve_proxy_config};
29
pub use tool_args::ToolArgs;