Skip to content

fix: use streamable_http_client instead of deprecated streamablehttp_client#150

Open
dap0am wants to merge 2 commits intoaws:mainfrom
dap0am:fix/streamable-http-client-deprecation-warning
Open

fix: use streamable_http_client instead of deprecated streamablehttp_client#150
dap0am wants to merge 2 commits intoaws:mainfrom
dap0am:fix/streamable-http-client-deprecation-warning

Conversation

@dap0am
Copy link

@dap0am dap0am commented Jan 26, 2026

Description

Fixes #128 - Resolves the deprecation warning when using the library with Python 3.13 and fastmcp 2.14.1+.

Changes

  • Updated import in to use instead of deprecated
  • Adapted to the new API where the httpx client is created and passed to instead of passing individual parameters
  • Updated fastmcp dependency from to
  • Updated test mocks to reflect the new API structure

Testing

  • All 138 unit tests pass
  • Ruff linting passes
  • Ruff formatting passes
  • Pyright type checking passes (0 errors)

Root Cause

The MCP Python SDK renamed (without underscore) to (with underscore) in version 2.14.1. The old function now emits a . The new API also changed to accept an parameter instead of individual configuration parameters.

Release Note

[BUGFIX] client: Fix deprecation warning by using streamable_http_client instead of streamablehttp_client

@dap0am dap0am requested a review from a team as a code owner January 26, 2026 15:08
@dap0am dap0am requested review from bidesh and wzxxing January 26, 2026 15:08
…client

- Update import in mcp_proxy_for_aws/client.py to use streamable_http_client
- Update fastmcp dependency from (>=2.13.1,<2.14.1) to (>=2.14.1,<3.0.0)
- Adapt to new API where httpx client is created and passed instead of factory
- Update test mocks to reflect the new API structure
- Resolves deprecation warning introduced in fastmcp 2.14.1+

Fixes aws#128
@dap0am dap0am force-pushed the fix/streamable-http-client-deprecation-warning branch from 6f2c1a1 to 02a7444 Compare January 26, 2026 15:09
Update to fastmcp 2.14.4 which includes additional fixes for the latest dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeprecationWarning: Use streamable_http_client instead of streamablehttp_client

2 participants