Skip to content

feat(mcp): limit web request body size - #324

Merged
vamgan merged 1 commit into
mainfrom
feat/mcp-web-request-limits
Jun 6, 2026
Merged

vamgan merged 1 commit into
mainfrom
feat/mcp-web-request-limits

Conversation

@vamgan

@vamgan vamgan commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add maxRequestBodyBytes to the Web MCP handler with a default 1 MiB guard
  • return a JSON-RPC 413 payload_too_large response before auth, server setup, or MCP parsing
  • document the production control in MCP docs and the main website sample

Verification

@vercel

vercel Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
askable Ready Ready Preview, Comment Jun 6, 2026 8:19pm

@pkg-pr-new

pkg-pr-new Bot commented Jun 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

@askable-ui/context

npm i https://pkg.pr.new/@askable-ui/context@324

@askable-ui/core

npm i https://pkg.pr.new/@askable-ui/core@324

@askable-ui/create-app

npm i https://pkg.pr.new/@askable-ui/create-app@324

@askable-ui/mcp

npm i https://pkg.pr.new/@askable-ui/mcp@324

@askable-ui/react

npm i https://pkg.pr.new/@askable-ui/react@324

@askable-ui/react-native

npm i https://pkg.pr.new/@askable-ui/react-native@324

@askable-ui/svelte

npm i https://pkg.pr.new/@askable-ui/svelte@324

@askable-ui/vue

npm i https://pkg.pr.new/@askable-ui/vue@324

commit: 7134056

@vamgan
vamgan merged commit 81a8dda into main Jun 6, 2026
9 checks passed
@vamgan
vamgan deleted the feat/mcp-web-request-limits branch June 6, 2026 20:21

This branch was successfully deployed

1 active deployment
Preview — 71340564 Deployed Jun 6, 2026 by vercel[bot]
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.

1 participant