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

View File

@@ -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"