mirror of
https://github.com/openai/codex.git
synced 2026-11-05 16:29:31 +00:00
Support threadless MCP connections without event channels (#34408)
## What changed - Make the MCP connection manager's event sender optional. - Skip startup notifications when a caller has no session event stream. - Decline interactive MCP elicitations in that mode while allowing the underlying operation to continue. - Update threadless resource reads, status snapshots, and connector discovery to use the channel-free path. ## Testing - Extend the app-server MCP resource test to verify that a threadless resource read declines an elicitation and still returns the resource contents. GitOrigin-RevId: 65fea152adbc02a78e09a40cae4134b6dccffd34
This commit is contained in:
1 parent
b7e39aa316
commit
19940967bd
14 files changed
+185
-124
No files matched your search
@@ -83,8 +83,6 @@ async fn hosted_plugin_runtime_ps_mcp_tool_calls_use_current_auth_manager_token(
|
||||
CODEX_APPS_MCP_SERVER_NAME.to_string(),
|
||||
EffectiveMcpServer::configured(hosted_plugin_runtime_config),
|
||||
)]);
|
||||
let (tx_event, rx_event) = async_channel::unbounded();
|
||||
drop(rx_event);
|
||||
let approval_policy = Constrained::allow_any(AskForApproval::Never);
|
||||
let manager = McpConnectionManager::new(
|
||||
&mcp_servers,
|
||||
@@ -92,7 +90,7 @@ async fn hosted_plugin_runtime_ps_mcp_tool_calls_use_current_auth_manager_token(
|
||||
AuthKeyringBackendKind::default(),
|
||||
&approval_policy,
|
||||
"test".to_string(),
|
||||
tx_event,
|
||||
/*tx_event*/ None,
|
||||
CancellationToken::new(),
|
||||
PermissionProfile::default(),
|
||||
McpRuntimeContext::new(
|
||||
|
||||
Reference in new issue
Block a user