diff --git a/mcp_proxy_for_aws/client.py b/mcp_proxy_for_aws/client.py index efdb6bd8..4b34a5fb 100644 --- a/mcp_proxy_for_aws/client.py +++ b/mcp_proxy_for_aws/client.py @@ -18,7 +18,7 @@ from botocore.credentials import Credentials from contextlib import _AsyncGeneratorContextManager from datetime import timedelta -from mcp.client.streamable_http import GetSessionIdCallback, streamablehttp_client +from mcp.client.streamable_http import GetSessionIdCallback, streamable_http_client from mcp.shared._httpx_utils import McpHttpClientFactory, create_mcp_http_client from mcp.shared.message import SessionMessage from mcp_proxy_for_aws.sigv4_helper import SigV4HTTPXAuth @@ -114,7 +114,7 @@ def aws_iam_streamablehttp_client( auth = SigV4HTTPXAuth(creds, aws_service, region) # Return the streamable HTTP client context manager with AWS IAM authentication - return streamablehttp_client( + return streamable_http_client( url=endpoint, headers=headers, timeout=timeout,