pub struct Config {Show 18 fields
pub remote_mcp_url: String,
pub remote_sse_url: Option<String>,
pub mcp_protocol_version: String,
pub auth_scheme: AuthScheme,
pub oidc_discovery_url: Option<String>,
pub kc_auth_url: Option<String>,
pub kc_token_url: Option<String>,
pub kc_par_url: Option<String>,
pub oidc_issuer: Option<String>,
pub oidc_offline_access: bool,
pub oidc_client_id: String,
pub oidc_redirect_url: String,
pub user_id: String,
pub auth_timeout_secs: u64,
pub template_dir: Option<PathBuf>,
pub log_level: String,
pub log_dir: Option<PathBuf>,
pub allow_insecure_http: bool,
}Expand description
mcp-airlock’s configuration.
Fields§
§remote_mcp_url: StringRemote MCP endpoint (the Streamable HTTP URL of the server)
remote_sse_url: Option<String>Standalone SSE endpoint of legacy (2025-11-25 and earlier) servers [default: –remote-mcp-url]
mcp_protocol_version: StringFallback MCP-Protocol-Version, used only when a message doesn’t determine its version
auth_scheme: AuthSchemeAuthorization header scheme; the DPoP proof header is sent either way
oidc_discovery_url: Option<String>Authorization server metadata URL (skips discovery from the MCP server)
kc_auth_url: Option<String>Authorization endpoint override
kc_token_url: Option<String>Token endpoint override
kc_par_url: Option<String>Pushed Authorization Request (PAR) endpoint override
oidc_issuer: Option<String>Expected issuer of the authorization server the client ID is registered with
oidc_offline_access: boolRequest the offline_access scope (long-lived refresh tokens) when the provider offers it
oidc_client_id: StringOIDC Client ID (a pre-registered ID, or an https URL of a Client ID Metadata Document)
oidc_redirect_url: StringLoopback redirect URL for the login callback (must be registered with the provider)
user_id: StringName under which credentials are stored in the OS keychain
auth_timeout_secs: u64Seconds to wait for the browser login to complete before giving up
template_dir: Option<PathBuf>Directory containing success.html and failure.html for the auth callback
log_level: StringLog level (error, warn, info, debug, trace)
log_dir: Option<PathBuf>Directory for logs [default: per-user state directory, e.g. ~/.local/state/mcp-airlock/logs]
allow_insecure_http: boolAllow plain-HTTP MCP and authorization server URLs on non-loopback hosts (insecure)
Implementations§
Trait Implementations§
Source§impl Args for Config
impl Args for Config
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for Config
impl FromArgMatches for Config
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.