Repository navigation
Description
Package: temporalio-google-genai 0.1.0 and main (f3e1fb1).
Is your feature request related to a problem? Please describe.
The mcp extra of temporalio-google-genai needs MCP SDK v1 (mcp>=1.24,<2). The README says so ("This adapter requires MCP Python SDK v1"). The other Temporal MCP integrations need MCP SDK v2:
- the
mcpextra oftemporalio-openai-agents(1.1.0 andmain):mcp>=2,<3; temporalio-mcp0.2.0:mcp>=2,<3;- the
mcpextra oftemporalio-strands-agentsonmain, after Breaking: run the Strands MCP activities through temporalio-mcp #190:mcp>=2,<3.
So Gemini client-side MCP can't be installed next to any of them, in one Worker or in one lockfile.
temporalio 1.35.0 makes this hit more people. Its google-genai extra installs temporalio-google-genai[mcp], so temporalio[google-genai] alone rules out the OpenAI Agents MCP extra, even in code that never uses MCP with Gemini.
Resolve only, nothing installed:
$ cat requirements.in
temporalio-google-genai[mcp]==0.1.0
temporalio-openai-agents[mcp]==1.1.0
$ uv pip compile requirements.in --python-version 3.12
× No solution found when resolving dependencies:
╰─▶ Because temporalio-google-genai[mcp]==0.1.0 depends on mcp>=1.24,<2
and temporalio-openai-agents[mcp]==1.1.0 depends on mcp>=2,<3,
we can conclude that temporalio-google-genai[mcp]==0.1.0 and
temporalio-openai-agents[mcp]==1.1.0 are incompatible.
And because you require temporalio-google-genai[mcp]==0.1.0 and
temporalio-openai-agents[mcp]==1.1.0, we can conclude that your
requirements are unsatisfiable.
Where this shows up today: temporalio/samples-python resolves its google-genai group (temporalio-google-genai[mcp]) in the same lock as its Strands group. Once the next temporalio-strands-agents release ships #190, its Strands MCP sample can't stay in that lock.
Describe the solution you'd like
Support MCP SDK v2 in the GenAI MCP adapter, or accept both majors, like the other plugins. Some facts that may help:
- mcp 2.3.0 still exports
ClientSessionandmcp.types. - google-genai 2.34.0 imports
mcp.ClientSession,mcp.types.Tool,mcp.client.streamable_http.streamable_http_clientandmcp.shared._httpx_utils.create_mcp_http_client.
I have not checked whether google-genai's MCP path or this adapter works on v2.
Outside this repo, temporalio/sdk-python's google-genai extra could install temporalio-google-genai without [mcp]. Then the extra would not force MCP v1.
Activity