mod.rs 994 Bytes
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
18

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