Skip to content

chore(py): release Python SDK v0.14.0 - #7205

Closed
huangjeff5 wants to merge 1 commit into
mainfrom
release/py-0.14.0
Closed

huangjeff5 wants to merge 1 commit into
mainfrom
release/py-0.14.0

Conversation

@huangjeff5

Copy link
Copy Markdown
Contributor

MCP errors say which server failed and why. 0.14 is a small patch release on top of 0.13: one fix to genkit-mcp error reporting, no API changes in core or the other plugins.

pip install --upgrade genkit genkit-mcp

MCP errors name the server and carry the cause

In 0.13, a connection error named only the server's command. Two servers in one host that run the same command, say two npx servers, produced identical errors. Timeout and startup errors also dropped the reason the MCP SDK or the OS gave.

Errors now name the client, or the server and its host, alongside the command. Timeout and connection failures attach the underlying exception as __cause__, and the message ends with its text. The MCP connection ended log line carries the same names.

# 1. Define a host with two servers
host = define_mcp_host(
    ai,
    'support',
    mcp_servers={
        'crm': {'command': 'npx', 'args': ['-y', '@acme/crm-mcp']},
        'tickets': {'command': 'npx', 'args': ['-y', '@acme/tickets-mcp']},
    },
)

# 2. List tools in a container image without Node on PATH
try:
    await host.get_active_tools()
except GenkitError as e:
    print(e)

# 0.13
# => UNAVAILABLE: MCP connection to 'npx' failed
# 0.14
# => UNAVAILABLE: MCP connection to 'tickets' on host 'support' ('npx') failed:
#    [Errno 2] No such file or directory: 'npx'

Smaller things worth knowing

  • Malformed MCP replies raise GenkitError: A server that sent an invalid tools/list or tools/call result used to escape as a raw pydantic ValidationError. It now raises a GenkitError with status INTERNAL and the original exception as __cause__. The connection stays open. (fix(py/plugins/mcp): say which server failed and why #6930)

Before you upgrade

  • genkit-mcp error messages changed. If you match on MCP error text, update the patterns. The server name now comes before the command, and timeout and connection-failure messages end with the cause.
  • Catch GenkitError, not ValidationError, for bad MCP replies. Code that caught pydantic's ValidationError from an MCP tool listing or call no longer sees it there.
  • Plugins require genkit>=0.14.0. Upgrade genkit and its plugins together.

@huangjeff5

Copy link
Copy Markdown
Contributor Author

Opened in the wrong repo; Python releases ship from genkit-ai/genkit-python.

@huangjeff5 huangjeff5 closed this Nov 13, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the version of genkit and its related sub-packages from 0.13.0 to 0.14.0 across multiple pyproject.toml files. It also bumps the minimum required version of genkit dependencies to 0.14.0 and updates the lockfile py/uv.lock to reflect these changes. No review comments were provided, and there is no feedback to address.

@huangjeff5
huangjeff5 deleted the release/py-0.14.0 branch November 13, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant