fix(config): Add support for MCP server configuration parameters (#812)

* fix(config): Add support for MCP server configuration parameters

* refact: rename the sse_readtimeout to sse_read_timeout

* update the code with review comments

* update the MCP document for the latest change
This commit is contained in:
Willem Jiang
2026-01-10 15:59:49 +08:00
committed by GitHub
parent e52e69bdd4
commit 6b73a53999
9 changed files with 207 additions and 13 deletions
+11 -2
View File
@@ -30,8 +30,17 @@ class MCPServerMetadataRequest(BaseModel):
headers: Optional[Dict[str, str]] = Field(
None, description="HTTP headers (for sse/streamable_http type)"
)
timeout_seconds: Optional[int] = Field(
None, description="Optional custom timeout in seconds for the operation"
timeout_seconds: Optional[int] = Field(
None,
ge=1,
le=3600,
description="Optional custom timeout in seconds for the operation (default: 60, range: 1-3600)"
)
sse_read_timeout: Optional[int] = Field(
None,
ge=1,
le=3600,
description="Optional SSE read timeout in seconds (for sse type, default: 30, range: 1-3600)"
)