pub struct ProxyMcpServerConfig {
pub name: String,
pub url: String,
pub auth_type: String,
pub token_key: Option<String>,
pub tool_prefix: Option<String>,
pub transport: String,
pub routing: Option<ProxyRoutingOverride>,
}Expand description
Configuration for an upstream MCP server to proxy.
Fields§
§name: StringServer name (used as tool prefix if tool_prefix not set)
url: StringServer URL (SSE or Streamable HTTP endpoint)
auth_type: StringAuth type: “bearer”, “api_key”, “none”
token_key: Option<String>Keychain key for auth token
tool_prefix: Option<String>Tool name prefix override (default: name)
transport: StringTransport type: “sse” (default) or “streamable-http”
routing: Option<ProxyRoutingOverride>Per-server routing override. Only the fields explicitly set here win over the
global [proxy.routing]; omitted fields inherit from the global config (so a
per-server block that just sets strategy does not silently reset
fallback_on_error to its default).
Trait Implementations§
Source§impl Clone for ProxyMcpServerConfig
impl Clone for ProxyMcpServerConfig
Source§fn clone(&self) -> ProxyMcpServerConfig
fn clone(&self) -> ProxyMcpServerConfig
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 ProxyMcpServerConfig
impl Debug for ProxyMcpServerConfig
Source§impl<'de> Deserialize<'de> for ProxyMcpServerConfig
impl<'de> Deserialize<'de> for ProxyMcpServerConfig
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 ProxyMcpServerConfig
impl RefUnwindSafe for ProxyMcpServerConfig
impl Send for ProxyMcpServerConfig
impl Sync for ProxyMcpServerConfig
impl Unpin for ProxyMcpServerConfig
impl UnsafeUnpin for ProxyMcpServerConfig
impl UnwindSafe for ProxyMcpServerConfig
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