mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
Use the current MCP runtime context for skill dependency OAuth (#64899)
## Why OAuth discovery for newly installed skill dependencies needs an HTTP client for each added server. Building the full runtime MCP configuration does extra work because the installer already has those server configs. ## What changed Use `current_mcp_runtime_context` to resolve the HTTP clients for the added servers. GitOrigin-RevId: 4970954dd5f1ed21a02dfe7f6c3a9f1df4fe7026
This commit is contained in:
@@ -154,7 +154,7 @@ async fn maybe_install_mcp_dependencies(
|
||||
return;
|
||||
}
|
||||
|
||||
let (_, runtime_context) = sess.runtime_mcp_config_and_context(config).await;
|
||||
let runtime_context = sess.current_mcp_runtime_context().await;
|
||||
for (name, server_config) in &added {
|
||||
let http_client = match runtime_context.resolve_http_client(name, server_config) {
|
||||
Ok(http_client) => http_client,
|
||||
|
||||
Reference in New Issue
Block a user