pub struct Args {
pub memory_file: Option<String>,
pub transport: Transport,
pub bind: String,
pub log_level: String,
pub auth_token: Option<String>,
pub auth_token_file: Option<String>,
pub mmap_size: i64,
pub lru_cache_size: usize,
pub read_pool_size: usize,
pub tls_cert: Option<String>,
pub tls_key: Option<String>,
}Fields§
§memory_file: Option<String>Path to the memory file
transport: TransportTransport to listen on: stdio, tcp, or http
bind: StringAddress to bind for the tcp and http transports
log_level: StringLog level
auth_token: Option<String>Bearer token required on the tcp (first line) and http
(Authorization header) transports. Overrides --auth-token-file and
the MCP_MEMORY_AUTH_TOKEN env var. stdio is never authenticated.
auth_token_file: Option<String>Path to a file whose trimmed contents are the bearer token. An empty
file is rejected (fail closed). Ignored if --auth-token is set.
mmap_size: i64SQLite mmap size in bytes (default: 256 MiB).
lru_cache_size: usizeEntity-metadata LRU cache capacity (0 = unbounded).
read_pool_size: usizeNumber of read-only SQLite connections backing concurrent reads. WAL mode allows readers to run in parallel with each other and the single writer; a larger pool raises read concurrency at the cost of a little memory. Clamped to at least 1.
tls_cert: Option<String>Path to a PEM certificate chain to serve the http transport over TLS
(HTTPS). Requires –tls-key. Falls back to the MCP_TLS_CERT env var.
When unset, the http transport stays plaintext.
tls_key: Option<String>Path to the PEM private key matching –tls-cert. Falls back to the MCP_TLS_KEY env var.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§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 CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more