diff --git a/tools/mcp_tool.py b/tools/mcp_tool.py index 8d1021ca1cf..b6279f70215 100644 --- a/tools/mcp_tool.py +++ b/tools/mcp_tool.py @@ -2489,7 +2489,7 @@ class MCPServerTask: # re-probing is a redundant round-trip. Also skip for OAuth servers: # without a cached token the endpoint returns HTML or 401, which # would incorrectly block the OAuth flow before it can run. - if config.get("transport") != "sse" and not self._ready.is_set() and self._auth_type != "oauth": + if config.get("transport") != "sse" and not config.get("skip_preflight") and not self._ready.is_set() and self._auth_type != "oauth": try: _probe_headers = dict(config.get("headers") or {}) await self._preflight_content_type(