nb_mcp_server/lib.rs
1pub mod git_signing;
2pub mod mcp;
3pub mod nb;
4pub mod paths;
5
6/// Command-line configuration for the MCP server.
7pub struct Config {
8 /// Default notebook (CLI --notebook overrides NB_MCP_NOTEBOOK env var).
9 pub notebook: Option<String>,
10 /// Disable commit and tag signing in the notebook repository.
11 pub commit_signing_disabled: bool,
12 /// Automatically create missing notebooks.
13 pub create_notebook: bool,
14 /// Show notebook and state paths, then exit.
15 pub show_paths: bool,
16}
17
18impl Default for Config {
19 fn default() -> Self {
20 Self {
21 notebook: None,
22 commit_signing_disabled: false,
23 create_notebook: true,
24 show_paths: false,
25 }
26 }
27}