Skip to content

Fix reservation_service startup: pin mcp>=1.27.2 for langchain-mcp-adapters 0.3.0#662

Open
pdettori wants to merge 1 commit into
mainfrom
fix/reservation-service-mcp-pin
Open

Fix reservation_service startup: pin mcp>=1.27.2 for langchain-mcp-adapters 0.3.0#662
pdettori wants to merge 1 commit into
mainfrom
fix/reservation-service-mcp-pin

Conversation

@pdettori

@pdettori pdettori commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Supersedes Dependabot #657. That PR bumped langchain-mcp-adapters to 0.3.0 in a2a/reservation_service but the service pinned no mcp floor, so an older mcp SDK resolved and the agent crashed at startup:

ImportError: cannot import name 'streamable_http_client' from 'mcp.client.streamable_http'
  (langchain_mcp_adapters/sessions.py) — Did you mean: 'streamablehttp_client'?

Fix

Verification

uv run --locked python -c 'import langchain_mcp_adapters.sessions'IMPORT_OK (the exact import that was crashing now resolves).

Closes #657.

Assisted-By: Claude Code

…0.3.0

langchain-mcp-adapters 0.3.0 imports the renamed streamable_http_client
symbol from the mcp SDK. reservation_service pinned no mcp floor, so an
older mcp resolved and the agent crashed at startup with:
  ImportError: cannot import name 'streamable_http_client'
    from 'mcp.client.streamable_http'

Add an explicit mcp>=1.27.2 floor (mirroring weather_service, which makes
the same adapters bump and passes test-startup) and re-lock. Resolves to
mcp 1.28.1. Supersedes Dependabot #657, which made the adapters bump
without the required mcp floor.

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New/ToDo

Development

Successfully merging this pull request may close these issues.

3 participants