Skip to main content

Module limits

Module limits 

Source
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§

PayloadLimits
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.