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

Function resolve_scope_profile

crates/chat-cli/src/cli/mcp.rs:481–486  ·  view source on GitHub ↗
(os: &Os, scope: Option<Scope>)

Source from the content-addressed store, hash-verified

479}
480
481fn resolve_scope_profile(os: &Os, scope: Option<Scope>) -> Result<PathBuf> {
482 Ok(match scope {
483 Some(Scope::Global) => global_mcp_config_path(os)?,
484 _ => workspace_mcp_config_path(os)?,
485 })
486}
487
488fn expand_path(os: &Os, p: &str) -> Result<PathBuf> {
489 let p = shellexpand::tilde(p);

Callers 3

executeMethod · 0.85
test_resolve_pathsFunction · 0.85

Calls 2

global_mcp_config_pathFunction · 0.85

Tested by 2

test_resolve_pathsFunction · 0.68