mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[PR #21485] [MERGED] fix: mcp ssl check #49148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21485
Author: @Classic298
Created: 2/16/2026
Status: ✅ Merged
Merged: 2/19/2026
Merged by: @tjbck
Base:
dev← Head:claude/fix-mcp-ssl-check-0janH📝 Commits (1)
ac92567fix: pass verify=False at httpx client construction for MCP SSL bypass📊 Changes
1 file changed (+17 additions, -4 deletions)
View changed files
📝
backend/open_webui/utils/mcp/client.py(+17 -4)📄 Description
Setting client.verify = False after httpx.AsyncClient construction does not affect the underlying transport's SSL context - the SSL context is configured during init and cannot be changed afterward. This caused MCP tool connections to always verify SSL certificates even when AIOHTTP_CLIENT_SESSION_TOOL_SERVER_SSL was set to false.
Build the httpx.AsyncClient directly with verify=False in the constructor kwargs to properly disable SSL certificate verification.
Fixes #21481
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.