Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
MCPConfig
Defined in the MCP module.
Rust AI Agent SDK
Configuration for MCP client.
Fields
| Name | Type | Description |
|---|
name | String | Server name |
transport | TransportConfig | Transport configuration |
security | SecurityConfig | Security configuration |
auto_reconnect | bool | Auto-reconnect on disconnect |
max_reconnect_attempts | u32 | Maximum reconnect attempts |
debug | bool | Enable debug logging |
Methods
new
fn new(name: impl Into<String>) -> Self
Create a new MCPConfig
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
transport
fn transport(mut self, transport: TransportConfig) -> Self
Set transport
Parameters:
| Name | Type |
|---|
transport | TransportConfig |
security
fn security(mut self, security: SecurityConfig) -> Self
Set security
Parameters:
| Name | Type |
|---|
security | SecurityConfig |
debug
fn debug(mut self, debug: bool) -> Self
Enable debug mode
Parameters:
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 201