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,
}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.
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.