mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-23 14:14:46 +08:00
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:
@@ -52,6 +52,20 @@ export const MCPConfigSchema = z.object({
|
||||
message: "`headers` must be an object of key-value pairs",
|
||||
})
|
||||
.optional(),
|
||||
timeout: z
|
||||
.number({
|
||||
message: "`timeout` must be a number",
|
||||
})
|
||||
.int()
|
||||
.positive()
|
||||
.optional(),
|
||||
sse_read_timeout: z
|
||||
.number({
|
||||
message: "`sse_read_timeout` must be a number",
|
||||
})
|
||||
.int()
|
||||
.positive()
|
||||
.optional(),
|
||||
transport: z
|
||||
.enum(["sse", "streamable_http"], {
|
||||
message: "transport must be either sse or streamable_http"
|
||||
|
||||
Reference in New Issue
Block a user