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:
@@ -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)"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user