You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump the mcp dependency to >=2.0.0,<3 and adapt the MCP tool
integration to the 2.0 SDK surface:
- McpError -> MCPError; ProgressFnT now lives in mcp.shared.dispatcher
(mcp.shared.session was removed).
- Read snake_case model attributes (input_schema, output_schema,
is_error, mime_type) instead of the removed camelCase aliases.
- ClientSession read_timeout_seconds now takes float seconds, not a
timedelta.
- streamable_http_client / streamable-http layer: the public
McpHttpClientFactory moved to a private module, so declare the
equivalent factory Protocol locally.
- to_mcp_server: mcp.server.fastmcp was removed; build the server with
mcp.server.mcpserver.MCPServer instead.
In mcp 2.0 the server-side Context.session is a fresh ServerSession per
request rather than per connection, so key the per-connection ADK
session map on the shared underlying Connection object (with a fallback
to the session) to keep one conversation per MCP connection.
Refs #6532
0 commit comments