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>,
pub oauth: Option<ProxyOAuthConfig>,
}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”, “oauth2”
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).
oauth: Option<ProxyOAuthConfig>OAuth 2.1 settings (used when auth_type = "oauth2"). Optional — a minimal
config sets only auth_type = "oauth2" and lets discovery (RFC 9728/8414)
plus dynamic registration (RFC 7591) fill the rest on first devboy login.
Trait Implementations§
Source§impl Clone for ProxyMcpServerConfig
impl Clone for ProxyMcpServerConfig
Source§fn clone(&self) -> ProxyMcpServerConfig
fn clone(&self) -> ProxyMcpServerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more