genkit icon indicating copy to clipboard operation
genkit copied to clipboard

py/plugins/mcp: client errors for a hosted server don't name its host

Open hilariie opened this issue 1 month ago • 1 comments

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 after disconnect, a replace, or host.close()
  • MCP client 'git' restarted during the request; retry it, from a tool call that was in flight during reconnect
  • the MCP connection did not close on its event loop in time warning, which logs client= where the host's own logs use server=/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.

hilariie avatar Oct 30 '26 14:10 hilariie

Hi! I’d like to work on this issue if it’s still available. Can you assign it to me?

yumin2002 avatar Nov 10 '26 20:11 yumin2002