Skip to content

Forward connect_timeout from ToolServer to MCPClient#2

Merged
krasserm merged 1 commit into
gradion-ai:mainfrom
krasserm:fix/forward-connect-timeout
Mar 10, 2026
Merged

Forward connect_timeout from ToolServer to MCPClient#2
krasserm merged 1 commit into
gradion-ai:mainfrom
krasserm:fix/forward-connect-timeout

Conversation

@krasserm

Copy link
Copy Markdown
Member

Summary

ToolServer accepted a connect_timeout parameter and stored it as self.connect_timeout, but never passed it to MCPClient when creating instances in _get_mcp_client. Users configuring a longer timeout for slow-starting MCP servers would silently get MCPClient's default (10s) instead.

Fix

Pass connect_timeout=self.connect_timeout to the MCPClient constructor in _get_mcp_client.

ToolServer accepted a connect_timeout parameter but never passed it to
MCPClient, which has its own default of 10s. Users configuring a longer
timeout for slow-starting MCP servers would silently get the MCPClient
default instead.
@krasserm
krasserm merged commit 09fee7b into gradion-ai:main Mar 10, 2026
10 checks passed
@krasserm
krasserm deleted the fix/forward-connect-timeout branch March 10, 2026 07:23
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.

1 participant