TransportConfig
Defined in the MCP module.Rust AI Agent SDK Transport configuration for MCP.
Fields
| Name | Type | Description |
|---|---|---|
transport_type | TransportType | Transport type |
command | Option<String> | Command for stdio transport |
args | Vec<String> | Arguments for stdio transport |
url | Option<String> | URL for HTTP/WebSocket transport |
headers | HashMap<String | Headers for HTTP transport |
env | HashMap<String | Environment variables |
timeout | u32 | Connection timeout in seconds |
Methods
stdio
| Name | Type |
|---|---|
command | impl Into<String> |
args | &[&str] |
http
| Name | Type |
|---|---|
url | impl Into<String> |
websocket
| Name | Type |
|---|---|
url | impl Into<String> |
env
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Into<String> |
header
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Into<String> |
timeout
| Name | Type |
|---|---|
timeout | u32 |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 47
