pub struct StreamableHttpTransportConfig {
pub url: String,
pub headers: Vec<(String, String)>,
}Expand description
Configuration for an MCP server that communicates over Streamable HTTP.
Use this transport for modern remote MCP servers that expose a single HTTP endpoint supporting JSON-RPC over POST, with optional SSE responses for streaming server messages.
§Example
use agentkit_mcp::StreamableHttpTransportConfig;
let config = StreamableHttpTransportConfig::new("https://mcp.example.com/mcp")
.with_header("Authorization", "Bearer tok_abc123");Fields§
§url: StringThe MCP endpoint URL to connect to.
headers: Vec<(String, String)>Additional HTTP headers sent with every request (e.g. authentication tokens).
Implementations§
Trait Implementations§
Source§impl Clone for StreamableHttpTransportConfig
impl Clone for StreamableHttpTransportConfig
Source§fn clone(&self) -> StreamableHttpTransportConfig
fn clone(&self) -> StreamableHttpTransportConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for StreamableHttpTransportConfig
impl PartialEq for StreamableHttpTransportConfig
Source§fn eq(&self, other: &StreamableHttpTransportConfig) -> bool
fn eq(&self, other: &StreamableHttpTransportConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StreamableHttpTransportConfig
impl StructuralPartialEq for StreamableHttpTransportConfig
Auto Trait Implementations§
impl Freeze for StreamableHttpTransportConfig
impl RefUnwindSafe for StreamableHttpTransportConfig
impl Send for StreamableHttpTransportConfig
impl Sync for StreamableHttpTransportConfig
impl Unpin for StreamableHttpTransportConfig
impl UnsafeUnpin for StreamableHttpTransportConfig
impl UnwindSafe for StreamableHttpTransportConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more