Skip to content

Commit eee7931

Browse files
Copilotlpcox
andcommitted
docs: Remove unsupported payloadSizeThreshold from JSON stdin config examples
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent 79ee259 commit eee7931

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ For the complete JSON configuration specification with all validation rules, see
128128
"domain": "localhost",
129129
"startupTimeout": 30,
130130
"toolTimeout": 60,
131-
"payloadDir": "/tmp/jq-payloads",
132-
"payloadSizeThreshold": 1024
131+
"payloadDir": "/tmp/jq-payloads"
133132
}
134133
}
135134
```
@@ -198,13 +197,16 @@ See **[Configuration Specification](https://github.com/github/gh-aw/blob/main/do
198197
- Must be positive integer
199198
- **`payloadDir`** (optional): Directory for storing large payload files (default: `/tmp/jq-payloads`)
200199
- Payloads are organized by session: `{payloadDir}/{sessionID}/{queryID}/payload.json`
201-
- **`payloadSizeThreshold`** (optional): Size threshold in bytes for payload storage (default: 1024)
202-
- Payloads **larger** than this threshold are stored to disk and return metadata
203-
- Payloads **smaller than or equal** to this threshold are returned inline
204-
- Common values: `512` (aggressive), `1024` (default), `2048` (balanced), `10240` (minimal storage)
205200

206201
**Note**: Gateway configuration fields are validated and parsed but not yet fully implemented.
207202

203+
**Configuration Alternatives**:
204+
- **`payloadSizeThreshold`** is not supported in JSON stdin format. Use:
205+
- CLI flag: `--payload-size-threshold <bytes>` (default: 1024)
206+
- Environment variable: `MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD=<bytes>`
207+
- Payloads **larger** than this threshold are stored to disk and return metadata
208+
- Payloads **smaller than or equal** to this threshold are returned inline
209+
208210
**Environment Variable Features**:
209211
- **Passthrough**: Set value to empty string (`""`) to pass through from host
210212
- **Expansion**: Use `${VAR_NAME}` syntax for dynamic substitution (fails if undefined)

0 commit comments

Comments
 (0)