Skip to content

Commit 4dd04b3

Browse files
authored
🐛 Bugfix: Fixed an issue where the MCP service could not be added correctly after updating the FastMCP version. (#3222)
[Specification Details] 1. Add `kwargs` to the `create_httpx_client` function to accept all additional parameters.
1 parent 81bb802 commit 4dd04b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/utils/http_client_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ def create_httpx_client(
88
headers: dict[str, str] | None = None,
99
timeout: httpx.Timeout | None = None,
1010
auth: httpx.Auth | None = None,
11+
**kwargs,
1112
) -> AsyncClient:
1213
return AsyncClient(
1314
headers=headers,
1415
timeout=timeout,
1516
auth=auth,
1617
trust_env=False,
1718
verify=False,
19+
**kwargs,
1820
)

0 commit comments

Comments
 (0)