Skip to content

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

@palashjhamnani

Description

@palashjhamnani

TypeError: AsyncClient.init() got an unexpected keyword argument 'proxies' with httpx 0.28+

Description:

The fetch server fails when using the [--proxy-url] argument with httpx version 0.28.x due to an API change in httpx.

Environment:

mcp-server-fetch version: 2025.4.7 (latest)
httpx version: 0.28.1
Python version: 3.12
Error: TypeError: AsyncClient.init() got an unexpected keyword argument 'proxies'

Steps to Reproduce:

Install mcp-server-fetch with httpx 0.28+
Run with proxy: python -m mcp_server_fetch --proxy-url http://localhost:9000
Attempt to fetch any URL

References:

httpx changelog:
https://github.com/encode/httpx/blob/master/CHANGELOG.md (0.28.0 release notes mention the proxies → proxy rename)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions