Skip to content

fix: issue #418 - check mcp client connections and re-init#419

Open
vugenti wants to merge 2 commits intomudler:mainfrom
vugenti:vugenti/issue418
Open

fix: issue #418 - check mcp client connections and re-init#419
vugenti wants to merge 2 commits intomudler:mainfrom
vugenti:vugenti/issue418

Conversation

@vugenti
Copy link
Contributor

@vugenti vugenti commented Feb 16, 2026

ping the mcp servers before adding actions for processing. if the connection is failed, re-initialize mcp actions before processing.


mcpNeedsInit := false
for _, server := range a.mcpSessions {
err := server.Ping(a.context, &mcp.PingParams{})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while I like this, can we make it restart only the sessions which are unresponsive? it sounds safer to re-start only the MCP session which doesn't reply to Pings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants