genkit
genkit copied to clipboard
py/plugins/mcp: client errors for a hosted server don't name its host
Part of #6194.
When a server runs behind an McpHost, a few errors and one log line from McpClient still treat it as a standalone client. They say "MCP client" and leave out the host, so two hosts that each run a git server produce the same text:
MCP client 'git' is closed, from a tool call made afterdisconnect, a replace, orhost.close()MCP client 'git' restarted during the request; retry it, from a tool call that was in flight duringreconnect- the
MCP connection did not close on its event loop in timewarning, which logsclient=where the host's own logs useserver=/host=
Connection errors already name the host since #6930 (MCP connection to 'git' on host 'hosted' ('uvx') failed). These three should match, and the tests that pin the current text need updating.
Hi! I’d like to work on this issue if it’s still available. Can you assign it to me?