pub struct Args {Show 26 fields
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 page_size: i64,
pub cache_size_mb: i64,
pub busy_timeout_ms: u64,
pub wal_flush_ms: u64,
pub lru_cache_size: usize,
pub read_pool_size: usize,
pub tls_cert: Option<String>,
pub tls_key: Option<String>,
pub vectors: bool,
pub code: bool,
pub embedding_dims: u32,
pub vec_metric: VecMetric,
pub vec_quantization: VecQuant,
pub vec_connectivity: usize,
pub vec_expansion_add: usize,
pub vec_expansion_search: usize,
pub vec_index: VecIndex,
pub ivf_nlist: usize,
pub ivf_nprobe: 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: 64 MiB).
page_size: i64SQLite page size in bytes; power of two (default: 4096, matches the Linux page / filesystem block size). Only applies to a freshly-created database.
cache_size_mb: i64SQLite page cache size in MiB (default: 32).
busy_timeout_ms: u64SQLite busy timeout in milliseconds (default: 5000).
wal_flush_ms: u64Interval in milliseconds for a background wal_checkpoint(PASSIVE) that
bounds the durability window in async mode (default: 500). 0 disables it.
lru_cache_size: usizeEntity-metadata LRU cache capacity (0 falls back to 10000).
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 (each connection carries its own page cache). 0 (default)
auto-scales to the CPU count, clamped to [1, 32].
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.
vectors: boolEnable vector / semantic search: exposes the vector_* and
hybrid_search tools backed by a usearch HNSW index. Off by default
(a pure knowledge-graph server). The --embedding-dims / --vec-* flags
only take effect when this is set.
code: boolEnable tree-sitter code-symbol indexing: exposes the code_index,
code_outline, code_search, and code_get_symbol tools, which parse
source files and store functions/classes/methods (and their
call/define edges) in the graph. On by default (when built with the code
feature, which is on by default).
embedding_dims: u32Embedding dimension for vector search (default: 384). Requires –vectors.
vec_metric: VecMetricDistance metric for the vector index. Requires –vectors.
vec_quantization: VecQuantScalar quantization for the vector index (lower = less memory). Requires –vectors.
vec_connectivity: usizeHNSW graph degree M (higher = better recall, more memory). Requires –vectors.
vec_expansion_add: usizeHNSW efConstruction (higher = better index quality, slower inserts). Requires –vectors.
vec_expansion_search: usizeHNSW efSearch (higher = better recall, slower queries). Requires –vectors.
vec_index: VecIndexANN index backend: hnsw (default) or ivf (IVF-Flat). Requires –vectors.
ivf_nlist: usizeIVF: number of Voronoi cells / centroids (default: 256). Requires –vec-index ivf.
ivf_nprobe: usizeIVF: cells probed per query — higher = better recall, slower (default: 8). Requires –vec-index ivf.
Implementations§
Source§impl Args
impl Args
Sourcepub fn vector_config(&self) -> VectorConfig
pub fn vector_config(&self) -> VectorConfig
Build the vector index configuration from the --embedding-dims /
--vec-* / --ivf-* flags. Only meaningful when --vectors is set.
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