1pub mod actions;
2pub mod config;
3pub mod errors;
4pub mod http;
5pub mod intern;
6pub mod kg;
7pub mod protocol;
8pub mod search;
9pub mod server;
10pub mod store;
11pub mod tools;
12pub mod types;
13
14use clap::{Parser, ValueEnum};
15
16#[derive(Copy, Clone, Debug, PartialEq, Eq, ValueEnum)]
19#[clap(rename_all = "lowercase")]
20pub enum Transport {
21 Stdio,
24 Tcp,
27 Http,
31}
32
33#[derive(Parser, Debug)]
34#[command(name = "MCP Memory Server")]
35#[command(about = "Knowledge graph memory server for MCP — entities, relations, and observations persisted via binary log", long_about = None)]
36pub struct Args {
37 #[arg(short = 'f', long = "memory-file")]
39 pub memory_file: Option<String>,
40
41 #[arg(short = 't', long = "transport", value_enum, default_value_t = Transport::Stdio)]
43 pub transport: Transport,
44
45 #[arg(short = 'b', long = "bind", default_value = "127.0.0.1:8080")]
47 pub bind: String,
48
49 #[arg(short, long, default_value = "info")]
51 pub log_level: String,
52}