-
Notifications
You must be signed in to change notification settings - Fork 20
[Repo Assist] fix(config): wire payloadSizeThreshold in JSON stdin + add keepaliveInterval to schema #3281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Repo Assist] fix(config): wire payloadSizeThreshold in JSON stdin + add keepaliveInterval to schema #3281
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -200,6 +200,16 @@ func fixSchemaBytes(schemaBytes []byte) ([]byte, error) { | |||||
| }, | ||||||
| "minItems": 1, | ||||||
| } | ||||||
|
|
||||||
| // Add keepaliveInterval to gatewayConfig. | ||||||
| // Spec §4.1.3.5: optional integer keepalive ping interval in seconds for HTTP | ||||||
| // MCP backends. The Go struct (StdinGatewayConfig.KeepaliveInterval) supports | ||||||
| // this field, but the embedded schema (v0.64.4) omits it, causing schema | ||||||
| // validation to reject the field when additionalProperties is false. | ||||||
| props["keepaliveInterval"] = map[string]interface{}{ | ||||||
| "type": "integer", | ||||||
| "description": "Keepalive ping interval in seconds for HTTP MCP backends. Use -1 to disable, 0 or unset for gateway default (1500s), or a positive integer for a custom interval.", | ||||||
|
||||||
| "description": "Keepalive ping interval in seconds for HTTP MCP backends. Use -1 to disable, 0 or unset for gateway default (1500s), or a positive integer for a custom interval.", | |
| "description": "Keepalive ping interval in seconds for HTTP MCP backends. Use -1 to disable, unset for the gateway default (1500s), 0 to disable HTTP keepalive, or a positive integer for a custom interval.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes payloadSizeThreshold configurable via JSON stdin, but docs/CONFIGURATION.md currently lists “Payload size threshold” under “TOML-only / CLI-only options (not available in JSON stdin)”. Please update the documentation (and any related references) so users know the field is now supported in JSON stdin and what its JSON name is (payloadSizeThreshold).
See below for a potential fix: