MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / load_cfg

Function load_cfg

crates/chat-cli/src/cli/mcp.rs:588–594  ·  view source on GitHub ↗
(os: &Os, p: &PathBuf)

Source from the content-addressed store, hash-verified

586}
587
588async fn load_cfg(os: &Os, p: &PathBuf) -> Result<McpServerConfig> {
589 Ok(if os.fs.exists(p) {
590 McpServerConfig::load_from_file(os, p).await?
591 } else {
592 McpServerConfig::default()
593 })
594}
595
596#[cfg(test)]
597mod tests {

Callers 1

ensure_config_fileFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected