Skip to content

Conversation

@masnwilliams
Copy link
Contributor

@masnwilliams masnwilliams commented Sep 1, 2025

TL;DR

Introduced a 64 KB payload size limit for the /invocations endpoint and updated relevant documentation.

Why we made these changes

To prevent system abuse and ensure stability, this change rejects invocation requests with excessively large payloads. This mitigates potential performance degradation and controls operational costs associated with processing large, potentially malicious, requests.

What changed?

  • Added middleware to reject invocation requests exceeding 64 KB with a 413 Payload Too Large status.
  • apps/develop.mdx & apps/invoke.mdx: Updated to specify the new 64 KB payload limit and recommend external storage for larger inputs.
  • reference/mcp-server.mdx: Restructured and updated documentation for improved clarity.

Description generated by Mesa. Update settings

Copy link
Contributor

@mesa-dot-dev mesa-dot-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performed full review of 27fdd58...515750e

3 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings

Copy link
Contributor

@dprevoznik dprevoznik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max payload info LGTM

@masnwilliams masnwilliams merged commit 708687a into main Sep 2, 2025
2 checks passed
@masnwilliams masnwilliams deleted the mason/invoke-payload-limit branch September 2, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants