Skip to main content

load_global

Function load_global 

Source
pub fn load_global(path: &Path) -> (Vec<McpServerConfig>, Vec<McpIssue>)
Expand description

Load the global tier, fail-open with a visible finding.

Why: ABSENCE is not a fault — a fresh install has no connectors. A file that EXISTS and does not parse is, and collapsing the two would start a run with its connectors quietly gone. load_or_default draws exactly that line. What: returns the servers plus any issue. Never Err: no configuration problem is fatal to a task run. Test: super::tests::config_tests::a_malformed_global_file_yields_zero_servers_and_an_issue, super::tests::config_tests::an_absent_global_file_is_empty_without_an_issue.