Add jsonLimit option to createMcpExpressApp by rameshreddy-adutla · Pull Request #1625 · modelcontextprotocol/typescript-sdk

@rameshreddy-adutla

The express.json() middleware defaults to a 100kb body size limit.
For MCP servers handling large tool responses or prompts, this limit
can be too restrictive. Add a jsonLimit option to CreateMcpExpressAppOptions
that is passed through to express.json({ limit }).

Fixes modelcontextprotocol#1354

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@KKonstantinov

KKonstantinov

This was referenced

Mar 4, 2026

This was referenced

Mar 12, 2026

This was referenced

Mar 12, 2026

This was referenced

Mar 21, 2026

This was referenced

Mar 30, 2026