Expand description
Configurable payload and resource limits for MCP servers.
These limits protect against resource exhaustion attacks by bounding the size of incoming requests and tool arguments. Defaults are tuned for AWS Lambda (4 MB API Gateway limit) but can be adjusted for other deployment targets.
Structs§
- Payload
Limits - Payload and resource limits for the MCP server.
Constants§
- DEFAULT_
MAX_ REQUEST_ BYTES - Default: 4 MB request body (matches AWS API Gateway).
- DEFAULT_
MAX_ TOOL_ ARGS_ BYTES - Default: 1 MB tool arguments.