Skip to content

Commit 6fc1bc7

Browse files
committed
fix: remove redirect_policy from McpHttpClientFactory Protocol
The Protocol describes the caller-side contract. No caller passes redirect_policy to the factory (sse_client only passes headers, timeout, auth). Adding it would break downstream code implementing custom factories. Github-Issue: #2106
1 parent 1f1efbd commit 6fc1bc7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/mcp/shared/_httpx_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def __call__( # pragma: no branch
8585
headers: dict[str, str] | None = None,
8686
timeout: httpx.Timeout | None = None,
8787
auth: httpx.Auth | None = None,
88-
redirect_policy: RedirectPolicy = RedirectPolicy.BLOCK_SCHEME_DOWNGRADE,
8988
) -> httpx.AsyncClient: ...
9089

9190

0 commit comments

Comments
 (0)