Skip to content

Commit b3fa226

Browse files
authored
fix: compilation error (#3203)
1 parent a930a9f commit b3fa226

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/chat-cli/src/mcp_client/client.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ impl McpClientService {
464464
*value = substitute_env_vars(value, &os.env);
465465
}
466466

467-
let http_service_builder = HttpServiceBuilder::new(url, os, url, *timeout, scopes, &processed_headers, messenger);
467+
let http_service_builder =
468+
HttpServiceBuilder::new(url, os, url, *timeout, scopes, &processed_headers, oauth, messenger);
468469

469470
let (service, auth_client_wrapper) = http_service_builder.try_build(&self).await?;
470471

@@ -700,7 +701,10 @@ mod tests {
700701
}
701702

702703
// Verify environment variables were substituted
703-
assert_eq!(processed_headers.get("Authorization").unwrap(), "Bearer github_pat_test123");
704+
assert_eq!(
705+
processed_headers.get("Authorization").unwrap(),
706+
"Bearer github_pat_test123"
707+
);
704708
assert_eq!(processed_headers.get("X-API-Key").unwrap(), "secret_key_456");
705709
assert_eq!(processed_headers.get("Content-Type").unwrap(), "application/json");
706710
}

0 commit comments

Comments
 (0)