Files
jhonny-editor/bm/premiere-pro-mcp-main/docs/recommendations/2026-08-18/02-http-request-bounds.md
T
João Henrique b541f502ba feat: initial commit - Jhonny Editor
- Adicionado estrutura completa do projeto
- Configurado MCP server para Premiere Pro
- Adicionado documentação e skills
- Configurado Gitignore para o projeto
2026-09-08 09:59:31 -04:00

1.1 KiB
Executable File

Recommendation 02: bound HTTP requests and sockets

Evidence

Remote MCP requests can currently consume an unbounded body and inherit Node's generic timeout behavior. MCP tools can drive Premiere, so parsing and socket limits must apply before a transport or host operation is allocated.

Proposed improvement

Add validated environment settings for maximum body bytes, headers timeout, request timeout, keep-alive timeout, and maximum requests per socket. Count bytes while the request streams and return deterministic 408 or 413 responses before MCP parsing.

Acceptance

  • Oversized and slow requests never invoke createServer or a Premiere bridge.
  • Invalid configuration fails startup instead of silently disabling a limit.
  • Boundary tests cover chunked bodies, declared lengths, disconnects, and exact limits.

This is remote-transport containment, not proof of host cancellation.