Skip to content

Fix Google ADK test servers with MCP 2 - #420

Merged
brianstrauch merged 1 commit into
mainfrom
fix/google-adk-mcp-test-servers
Nov 4, 2026
Merged

brianstrauch merged 1 commit into
mainfrom
fix/google-adk-mcp-test-servers

Conversation

@brianstrauch

Copy link
Copy Markdown
Member

The nightly Google ADK suite fails with MCP 2 because the embedded test servers import the removed FastMCP class. Use MCPServer in the echo, state, and replay server scripts, with a FastMCP fallback for MCP 1.x.

Fixes #412.

Validation:

  • make lint with latest allowed dependencies passed.
  • make test PYTEST_ARGS='-n 4' passed on Python 3.14.4 with latest allowed dependencies (MCP 2.3.0): 232 passed, 5 skipped.
  • The same full suite passed on Python 3.11.15 with committed dependencies (MCP 1.30.0): 232 passed, 5 skipped.

@brianstrauch
brianstrauch requested a review from a team as a code owner November 4, 2026 16:35

@campoy campoy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks right to me. In mcp 2.3.0 mcp.server.fastmcp is a stub that raises ModuleNotFoundError pointing at MCPServer, and the constructor, tool() and run() the scripts use are the same as FastMCP's in 1.30. I ran the suite on this branch with the committed lock (mcp 1.30.0) and with make sync-latest (mcp 2.3.0): 232 passed, 5 skipped both times. On main with mcp 2.3.0 the same 30 test_stateful_mcp.py tests fail as in the nightly. LGTM.

@brianstrauch
brianstrauch merged commit 26df67e into main Nov 4, 2026
15 checks passed
@brianstrauch
brianstrauch deleted the fix/google-adk-mcp-test-servers branch November 4, 2026 21:03
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.

nightly: google_adk failing (latest)

2 participants