This commit is contained in:
lihua
2026-03-13 16:37:48 +08:00
committed by Xubin Ren
parent 411b059dd2
commit 4dde195a28

View File

@@ -140,7 +140,7 @@ class MCPServerConfig(Base):
url: str = "" # HTTP/SSE: endpoint URL url: str = "" # HTTP/SSE: endpoint URL
headers: dict[str, str] = Field(default_factory=dict) # HTTP/SSE: custom headers headers: dict[str, str] = Field(default_factory=dict) # HTTP/SSE: custom headers
tool_timeout: int = 30 # seconds before a tool call is cancelled tool_timeout: int = 30 # seconds before a tool call is cancelled
enabled_tools: list[str] = Field(default_factory=list) # Only register these tools; empty = all tools
class ToolsConfig(Base): class ToolsConfig(Base):
"""Tools configuration.""" """Tools configuration."""