Skip to content

Commit 79cb413

Browse files
committed
update headers to dict[str, str]
1 parent 1456b89 commit 79cb413

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/mcp/shared/httpx_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Utilities for creating standardized httpx AsyncClient instances."""
22

3-
from __future__ import annotations
4-
53
from typing import Any
64

75
import httpx
@@ -10,7 +8,7 @@
108

119

1210
def create_mcp_http_client(
13-
headers: dict[str, Any] | None = None,
11+
headers: dict[str, str] | None = None,
1412
timeout: httpx.Timeout | None = None,
1513
) -> httpx.AsyncClient:
1614
"""Create a standardized httpx AsyncClient with MCP defaults.
@@ -61,4 +59,4 @@ def create_mcp_http_client(
6159
if headers is not None:
6260
kwargs["headers"] = headers
6361

64-
return httpx.AsyncClient(**kwargs)
62+
return httpx.AsyncClient(**kwargs)

0 commit comments

Comments
 (0)