Repository navigation
fix(mcp): name hosted server in client errors - #148
Merged
Merged
Conversation
Upstream-Commit: genkit-ai/genkit@ab6fe8f Upstream-PR: genkit-ai/genkit#7166
huangjeff5
approved these changes
Nov 30, 2026
huangjeff5
left a comment
Collaborator
There was a problem hiding this comment.
Verified genkit-mcp client and host tests locally (107 passed). Hosted server lifecycle errors and close-timeout logs now consistently name both server and host while preserving standalone client messages. Looks good!
huangjeff5
enabled auto-merge (squash)
November 30, 2026 21:29
Contributor
Author
|
Thanks! Do you mind approving the 3 workflows when convenient? @huangjeff5 |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This PR is ported from monorepo genkit-ai/genkit#7166 and addresses this issue: #204. When a server runs behind
McpHost, threeMcpClientpaths still identify it as a standalone client. Two hosts can each contain a server with the same name, so messages such asMCP client 'git' is closeddo not identify which host failed.Connection errors already include the host after genkit-ai/genkit#6930, which was ported here by genkit-ai/genkit#72, but client-level closed and restarted errors and the cross-event-loop close timeout warning do not.
Changes
MCP server <name> on host <host>, while preserving the existing standalone client text.serverandhostfields, while retainingclientfor standalone clients.