pub struct StreamableHttpServerConfig {
pub server_name: String,
pub server_type: Option<McpServerType>,
pub server_url: String,
pub auth_header: Option<String>,
pub auth_token: Option<String>,
pub custom_headers: Option<HashMap<String, String>>,
}Expand description
Configuration for an MCP server using Streamable HTTP.
Fields§
§server_name: StringThe name of the server.
server_type: Option<McpServerType>Server type.
server_url: StringThe URL path for the streamable HTTP server (e.g., ‘example/mcp’).
auth_header: Option<String>The name of the authentication header (e.g., ‘Authorization’).
auth_token: Option<String>The authentication token or API key value.
custom_headers: Option<HashMap<String, String>>Custom HTTP headers to include with streamable HTTP requests.
Trait Implementations§
Source§impl Clone for StreamableHttpServerConfig
impl Clone for StreamableHttpServerConfig
Source§fn clone(&self) -> StreamableHttpServerConfig
fn clone(&self) -> StreamableHttpServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamableHttpServerConfig
impl Debug for StreamableHttpServerConfig
Source§impl<'de> Deserialize<'de> for StreamableHttpServerConfig
impl<'de> Deserialize<'de> for StreamableHttpServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamableHttpServerConfig
impl RefUnwindSafe for StreamableHttpServerConfig
impl Send for StreamableHttpServerConfig
impl Sync for StreamableHttpServerConfig
impl Unpin for StreamableHttpServerConfig
impl UnsafeUnpin for StreamableHttpServerConfig
impl UnwindSafe for StreamableHttpServerConfig
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