pub struct ProxyConfig {Show 15 fields
pub listen_addr: String,
pub upstream_addr: String,
pub policy_paths: Vec<String>,
pub audit_enabled: bool,
pub audit_file: Option<String>,
pub fail_open: bool,
pub hot_reload: bool,
pub transport: TransportMode,
pub upstream_command: Option<String>,
pub upstream_args: Vec<String>,
pub health_addr: Option<String>,
pub kvlar_cloud_url: Option<String>,
pub kvlar_api_key: Option<String>,
pub kvlar_agent_id: Option<String>,
pub kvlar_radar_url: Option<String>,
}Expand description
Configuration for the Kvlar MCP proxy.
Fields§
§listen_addr: StringAddress to listen on (e.g., “127.0.0.1:9100”). TCP mode only.
upstream_addr: StringUpstream MCP server address to forward allowed requests to. TCP mode only.
policy_paths: Vec<String>Path to the policy YAML file(s).
audit_enabled: boolWhether to enable audit logging.
audit_file: Option<String>Path to the audit log file (JSONL format).
fail_open: boolWhether to fail-open (allow) when the policy engine errors. Default: false (fail-closed).
hot_reload: boolWhether to watch policy files for changes and reload automatically.
transport: TransportModeTransport mode (tcp or stdio). Default: tcp.
upstream_command: Option<String>Command to spawn for stdio transport (e.g., “npx”). Only used when transport = stdio.
upstream_args: Vec<String>Arguments for the upstream command. Only used when transport = stdio.
health_addr: Option<String>Health check endpoint address (e.g., “127.0.0.1:9101”).
Only used in TCP mode. Set to enable GET /health liveness probe.
kvlar_cloud_url: Option<String>SHIELD cloud base URL (e.g., “https://app.kvlar.io”).
When set with kvlar_api_key, enables cloud escalation and audit forwarding.
kvlar_api_key: Option<String>API key for SHIELD cloud authentication (kvlar_sk_...).
kvlar_agent_id: Option<String>Agent ID registered in SHIELD (UUID). Used to associate proxy audit events with a specific agent.
kvlar_radar_url: Option<String>RADAR cloud base URL (e.g., “https://radar.kvlar.io”). When set, audit events are also forwarded to RADAR.
Implementations§
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more