feat(mcp): make tool_timeout configurable per server via config

This commit is contained in:
Re-bin
2026-02-22 18:04:13 +00:00
parent 51f6247aed
commit 437ebf4e6e
3 changed files with 23 additions and 9 deletions

View File

@@ -260,6 +260,7 @@ class MCPServerConfig(Base):
env: dict[str, str] = Field(default_factory=dict) # Stdio: extra env vars
url: str = "" # HTTP: streamable HTTP endpoint URL
headers: dict[str, str] = Field(default_factory=dict) # HTTP: Custom HTTP Headers
tool_timeout: int = 30 # Seconds before a tool call is cancelled
class ToolsConfig(Base):