| Crates.io | turbomcp-transport-traits |
| lib.rs | turbomcp-transport-traits |
| version | 3.0.0-beta.3 |
| created_at | 2026-01-12 17:50:18.760877+00 |
| updated_at | 2026-01-22 16:44:26.53831+00 |
| description | Core transport traits and types for TurboMCP - foundation for all transport implementations |
| homepage | https://turbomcp.org |
| repository | https://github.com/Epistates/turbomcp |
| max_upload_size | |
| id | 2038376 |
| size | 99,777 |
Core transport traits and types for the TurboMCP Model Context Protocol SDK.
This crate provides the foundational abstractions that all transport implementations depend on:
Transport, BidirectionalTransport, StreamingTransport, TransportFactoryTransportType, TransportState, TransportCapabilities, TransportMessageTransportError, TransportResultLimitsConfig, TimeoutConfig, TlsConfigTransportMetrics, AtomicMetricsTransport implementations should depend on this crate and implement the Transport trait:
use turbomcp_transport_traits::{Transport, TransportResult, TransportMessage};
use async_trait::async_trait;
struct MyTransport { /* ... */ }
#[async_trait]
impl Transport for MyTransport {
fn transport_type(&self) -> TransportType { /* ... */ }
// ... other trait methods
}
This crate is part of the TurboMCP v3.0 restructuring effort to provide:
MIT