mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 10:02:10 -05:00
[GH-ISSUE #18913] issue: MCP ignores HTTP_PROXY #18711
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?
Originally created by @jarrod-mg on GitHub (Nov 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18913
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.34
Ollama Version (if applicable)
n/a
Operating System
open-webui container running inside AWS ECS Fargate
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
To be able to verify the connection (and register as a client) of an MCP server, when open-webui is running behind a proxy.
Actual Behavior
The connection never verifies. Register client never succeeds. I see a network timeout.
Steps to Reproduce
Logs & Screenshots
2025-11-04 02:55:55.732 | DEBUG | open_webui.routers.configs:verify_tool_servers_config:211 - Trying to fetch OAuth 2.1 discovery document from https://mcp.atlassian.com/.well-known/oauth-authorization-server
2025-11-04 02:57:25.987 | DEBUG | open_webui.routers.configs:verify_tool_servers_config:303 - Failed to connect to the tool server: Connection timeout to host https://mcp.atlassian.com/.well-known/oauth-authorization-server
Additional Information
I believe the issue is backend/open_webui/utils/oauth.py:254 in get_oauth_client_info_with_dynamic_client_registration, where there is:
async with aiohttp.ClientSession() as session:
I think this should be:
async with aiohttp.ClientSession(trust_env=True) as session:
Which is a pattern used elsewhere.
Thanks.
@jarrod-mg commented on GitHub (Nov 4, 2025):
I think line 290 will also need the same change.
@tjbck commented on GitHub (Nov 4, 2025):
Addressed in dev!