Skip to content

fix(fetch): update to httpx 0.28+ proxy parameter#3293

Open
thecaptain789 wants to merge 1 commit intomodelcontextprotocol:mainfrom
thecaptain789:fix-httpx-proxy-arg
Open

fix(fetch): update to httpx 0.28+ proxy parameter#3293
thecaptain789 wants to merge 1 commit intomodelcontextprotocol:mainfrom
thecaptain789:fix-httpx-proxy-arg

Conversation

@thecaptain789
Copy link

The httpx library renamed proxies to proxy in version 0.28.0. This was causing a TypeError when using the --proxy-url argument.

Changes:

  • Update AsyncClient(proxies=...) calls to use proxy= parameter
  • Remove version cap on httpx dependency (was <0.28)
  • Update test assertions to match new parameter name

Fixes #3287

The httpx library renamed 'proxies' to 'proxy' in version 0.28.0.
This updates the fetch server to use the new parameter name and
removes the version cap on httpx.

Fixes modelcontextprotocol#3287
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.

fetch server: TypeError with httpx 0.28+ - 'proxies' argument renamed to 'proxy'

1 participant