Skip to content

🐛 Bugfix: Fix MCP integration by ignoring proxy environment variables#3121

Open
xuyaqist wants to merge 5 commits into
developfrom
xyq/bugfix_tianzhou1
Open

🐛 Bugfix: Fix MCP integration by ignoring proxy environment variables#3121
xuyaqist wants to merge 5 commits into
developfrom
xyq/bugfix_tianzhou1

Conversation

@xuyaqist
Copy link
Copy Markdown
Contributor

Bugfix: Fix MCP integration by ignoring proxy environment variables

Copilot AI review requested due to automatic review settings May 30, 2026 06:41
@xuyaqist xuyaqist requested review from Dallas98 and WMC001 as code owners May 30, 2026 06:41
@xuyaqist xuyaqist changed the title Bugfix: Fix MCP integration by ignoring proxy environment variables 🐛 Bugfix: Fix MCP integration by ignoring proxy environment variables May 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix MCP integration issues caused by proxy-related environment variables by configuring FastMCP transports to use a custom HTTPX client factory.

Changes:

  • Adds a shared HTTPX async client factory with trust_env=False.
  • Wires the factory into backend MCP health checks and tool transport creation.
  • Adds pandas to SDK dependencies.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
backend/services/remote_mcp_service.py Adds the HTTPX client factory and passes it into MCP health-check transports.
backend/services/tool_configuration_service.py Passes the HTTPX client factory into MCP transport creation.
sdk/pyproject.toml Adds pandas>=2.2.0 as an SDK dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/services/tool_configuration_service.py Outdated
Comment thread backend/services/remote_mcp_service.py Outdated
Comment thread sdk/pyproject.toml Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants