mirror of
https://github.com/openai/codex.git
synced 2026-11-22 15:15:18 +00:00
Rename the MCP connection manager to McpConnectionSet (#34708)
## What changed - Use `McpConnectionSet` as the primary name for the collection of active MCP server connections throughout `codex-mcp` and its callers. - Keep `McpConnectionManager` as a backward-compatible type alias. GitOrigin-RevId: 9753838b4fd0a0b6429a9c4af0c077137616f388
This commit is contained in:
1 parent
6e5a2d6b8d
commit
516f1e2aff
21 files changed
+86
-85
No files matched your search
@@ -4,10 +4,10 @@ use codex_protocol::protocol::McpStartupFailure;
|
||||
use tracing::Instrument;
|
||||
use tracing::info_span;
|
||||
|
||||
use super::McpConnectionManager;
|
||||
use super::McpConnectionSet;
|
||||
use crate::rmcp_client::StartupOutcomeError;
|
||||
|
||||
impl McpConnectionManager {
|
||||
impl McpConnectionSet {
|
||||
/// Waits for every required server and reports their startup failures together.
|
||||
///
|
||||
/// Callers must make the manager reachable to request handlers before awaiting this method,
|
||||
|
||||
@@ -10,7 +10,7 @@ use tracing::instrument;
|
||||
use tracing::trace;
|
||||
use tracing::trace_span;
|
||||
|
||||
use super::McpConnectionManager;
|
||||
use super::McpConnectionSet;
|
||||
use crate::binding::McpBinding;
|
||||
use crate::binding::PreparedMcpCall;
|
||||
use crate::binding_clients::McpBindingClients;
|
||||
@@ -25,7 +25,7 @@ use crate::tools::ToolInfo;
|
||||
use crate::tools::filter_tools;
|
||||
use crate::tools::normalize_tools_for_model_with_prefix;
|
||||
|
||||
impl McpConnectionManager {
|
||||
impl McpConnectionSet {
|
||||
/// Returns all tools with model-visible names normalized.
|
||||
#[instrument(level = "trace", skip_all, fields(mcp_server_count = self.clients.len()))]
|
||||
pub async fn list_all_tools(&self) -> Vec<ToolInfo> {
|
||||
|
||||
Reference in new issue
Block a user