Skip to main content

load_or_default

Function load_or_default 

Source
pub fn load_or_default(path: &Path) -> McpConfig
Expand description

Load a single config file, returning an empty config if it does not exist (rather than None) — convenient for the TUI editor which wants to edit “the file” whether or not it exists yet.