mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
Use MCP in reviews after startup completes
This commit is contained in:
@@ -370,6 +370,13 @@ impl McpConnectionManager {
|
||||
!self.clients.is_empty()
|
||||
}
|
||||
|
||||
/// Returns immediately with whether every configured client has finished starting.
|
||||
pub fn startup_is_complete(&self) -> bool {
|
||||
self.clients
|
||||
.values()
|
||||
.all(|client| client.startup_complete.load(Ordering::Acquire))
|
||||
}
|
||||
|
||||
pub(crate) fn contains_server(&self, server_name: &str) -> bool {
|
||||
self.clients.contains_key(server_name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user