Publish validation MCP call repeatedly returns gateway timeout
User story
As a user inspecting publish diagnostics through Webstudio MCP, I need validation to return the same actionable findings shown in Builder so I can identify and fix publish blockers.
Summary
The validate-publish MCP operation repeatedly failed with a gateway timeout instead of returning the validation report.
What the agent tried
- Initialized a temporary local workspace from a user-provided project share link.
- Called validate-publish for the production target twice.
- Both calls returned HTTP 504 after approximately 16 seconds.
- Read-only inspect and list-assets MCP operations succeeded for the same project.
Expected behavior
Return the complete validation findings, including document identity, location, and remediation guidance, or a structured actionable validation-timeout result.
Actual result
The MCP call failed before returning validation findings. The response was an HTML gateway timeout from the API request.
Recovery attempts
- Retried the validation call once.
- Confirmed other read-only MCP operations against the same project were successful.
User impact
The user cannot inspect the publish error through the MCP validation path, which prevents comparison of the report with the Builder dialog.
Technical context
Operation validate-publish; target production; HTTP 504 Gateway Timeout after approximately 16,000 ms. No project-specific values were included.
Agent environment
- Client: Codex
- Provider: unknown
- Model: unknown
- Reasoning effort: unknown
- Trigger: automatic-friction
- Category: tool-failure
Technical runtime
- CLI: 0.302.0
- Node.js: 22.22.1
- Project ID:
3274ebde-fa97-421c-83a3-8dfafff69c53 - Operating system: darwin 24 (arm64)
- Execution mode: mcp
- API contract: public-api:bixfi6
- Bundle contract: bundle-1e81gg6
- Session namespace issues: stale=none; missing=instances,styleSources,styleSourceSelections,assetFolders,breakpoints,marketplaceProduct; invalidated=none
- Preview: stale=true; rendered=false; version matches session=unknown
Acceptance criteria
- Validation completes for projects with content assets within the supported request budget.
- If validation cannot complete, return a structured diagnostic with a useful cause and next step instead of an HTML gateway response.
Source: webstudio-is/webstudio