Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ book/
.env*

run-build.sh
# Ignore Amazon Q CLI context directory
crates/chat-cli/.amazonq/
11 changes: 10 additions & 1 deletion crates/chat-cli/src/cli/chat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ pub struct ChatArgs {
/// '--trust-tools=fs_read,fs_write', trust no tools: '--trust-tools='
#[arg(long, value_delimiter = ',', value_name = "TOOL_NAMES")]
pub trust_tools: Option<Vec<String>>,
/// Additional MCP configuration files (paths separated by OS path separator)
#[arg(
long,
value_delimiter = if cfg!(windows) { ';' } else { ':' },
value_name = "PATHS"
)]
pub mcp_config_paths: Option<Vec<String>>,
}

impl ChatArgs {
Expand Down Expand Up @@ -233,7 +240,9 @@ impl ChatArgs {
_ => StreamingClient::new(database).await?,
};

let mcp_server_configs = match McpServerConfig::load_config(&mut output).await {
let mcp_server_configs = match McpServerConfig::load_config(&ctx, &mut output, self.mcp_config_paths.as_deref())
.await
{
Ok(config) => {
if interactive && !database.settings.get_bool(Setting::McpLoadedBefore).unwrap_or(false) {
execute!(
Expand Down
Loading
Loading