Skip to main content

load_config

Function load_config 

Source
pub fn load_config(cli_flags: Map<String, Value>) -> Result<Config, McpifyError>
Expand description

Resolves configuration through the strict, stop-at-first-match cascade (REQ-2.2): CLI flags -> env vars -> local file (./github-mcp.config.yml) -> home file (~/.github-mcp/config.yml) -> system file (/etc/github-mcp/config.yml) -> install-dir file -> built-in defaults (applied by Config’s own #[serde(default = ...)] fields).