mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
Skip MCP auth probing for disabled servers (#17098)
Addresses #16971 Problem: Disabled MCP servers were still queried for streamable HTTP auth status during MCP inventory, so unreachable disabled entries could add startup latency. Solution: Return `Unsupported` immediately for disabled MCP server configs before bearer token/OAuth status discovery.
This commit is contained in:
@@ -157,6 +157,10 @@ async fn compute_auth_status(
|
||||
config: &McpServerConfig,
|
||||
store_mode: OAuthCredentialsStoreMode,
|
||||
) -> Result<McpAuthStatus> {
|
||||
if !config.enabled {
|
||||
return Ok(McpAuthStatus::Unsupported);
|
||||
}
|
||||
|
||||
match &config.transport {
|
||||
McpServerTransportConfig::Stdio { .. } => Ok(McpAuthStatus::Unsupported),
|
||||
McpServerTransportConfig::StreamableHttp {
|
||||
|
||||
Reference in New Issue
Block a user