Skip to content

Set explicit JSON body size limit for /mcp#270

Open
TheodorNEngoy wants to merge 1 commit intoGLips:mainfrom
TheodorNEngoy:codex/body-limit
Open

Set explicit JSON body size limit for /mcp#270
TheodorNEngoy wants to merge 1 commit intoGLips:mainfrom
TheodorNEngoy:codex/body-limit

Conversation

@TheodorNEngoy
Copy link

This sets an explicit Express JSON body size limit on the Streamable HTTP endpoint (/mcp).

Rationale: express.json() has a default limit, but making it explicit helps avoid surprises and reduces DoS risk for MCP/tool endpoints.

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