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
| Name | Type |
|---|---|
name | impl Into<String> |
transport
| Name | Type |
|---|---|
transport | TransportConfig |
security
| Name | Type |
|---|---|
security | SecurityConfig |
debug
| Name | Type |
|---|---|
debug | bool |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 201
