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:
jif authored and copyberry committed 2026-07-22 09:25:22 +00:00
1 parent 6e5a2d6b8d
commit 516f1e2aff
21 files changed
+86 -85

No files matched your search

+6 -8
View File
@@ -21,7 +21,7 @@ use tokio::sync::Notify;
use super::McpBinding;
use super::PreparedMcpCall;
use crate::binding_clients::McpBindingClients;
use crate::connection_manager::McpConnectionManager;
use crate::connection_manager::McpConnectionSet;
use crate::rmcp_client::ManagedClient;
use crate::server::McpServerMetadata;
use crate::server::McpServerOrigin;
@@ -97,13 +97,11 @@ async fn test_step(
SERVER_NAME.to_string(),
Arc::clone(&managed_client),
)])));
let connections = Arc::new(
McpConnectionManager::new_uninitialized_with_permission_profile(
&Constrained::allow_any(AskForApproval::OnRequest),
&PermissionProfile::default(),
/*prefix_mcp_tool_names*/ true,
),
);
let connections = Arc::new(McpConnectionSet::new_uninitialized_with_permission_profile(
&Constrained::allow_any(AskForApproval::OnRequest),
&PermissionProfile::default(),
/*prefix_mcp_tool_names*/ true,
));
let tool_catalog_revision = Arc::new(tokio::sync::RwLock::new(0));
let prepared = PreparedMcpCall::new(
Arc::clone(&connections),