-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Describe the bug (Security related? please follow https://github.com/aws/mcp-proxy-for-aws/security/policy to report them to AWS Security directly.)
When running the application with Python 3.13, a DeprecationWarning is triggered indicating that the deprecated streamablehttp_client function is being used instead of the newer streamable_http_client function.
Warning Message:
DeprecationWarning: Use streamable_http_client instead
File "contextlib.py", line 109
Root Cause:
The MCP Python SDK recently renamed and updated its HTTP client API, introducing streamable_http_client (with underscore) to replace the older streamablehttp_client (without underscore). The codebase appears to be using the deprecated function, which now emits a deprecation warning.
https://github.com/aws/mcp-proxy-for-aws/blob/main/mcp_proxy_for_aws/client.py#L117
** Reference **
modelcontextprotocol/python-sdk#1177
Expected Behavior
The library should use the updated streamable_http_client API without triggering any deprecation warnings.
Current Behavior
Print Warning Message:
DeprecationWarning: Use streamable_http_client instead
File "contextlib.py", line 109
Reproduction Steps
Use mcp-proxy-for-aws in python like:
stdio_mcp_client = MCPClient(
lambda: stdio_client(
StdioServerParameters(
command=command="uvx",
args=[
"[email protected]",
"https://aws-mcp.us-east-1.api.aws/mcp",
"--metadata", "AWS_REGION=us-west-2"
]
)
),
)``
Possible Solution
No response
Additional Information/Context
No response
Operating System
Ubuntu 22.04
Release Version
1.1.4
Other information
No response
Search verification
- I have searched existing issues and verified this is not a duplicate
Related issues
None