Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: validate_html dry-run tool for Satori constraints#59

Merged
trmquang93 merged 2 commits into
main from
feat/validate-html
May 17, 2026
Merged

feat: validate_html dry-run tool for Satori constraints #59
trmquang93 merged 2 commits into
main from
feat/validate-html

Conversation

@trmquang93

@trmquang93 trmquang93 commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new validate_html MCP tool that checks HTML/CSS against Satori's rendering constraints without rasterizing — returns structured warnings in milliseconds
  • Covers 6 rules: unsupported-position, no-style-block, multi-child-needs-flex, no-br-tag, text-needs-nowrap, unsupported-css-property
  • Stateless tool (no flow context needed), registered alongside asset tools
  • Documents the tool in mcp-server/README.md

Closes backlog item #9.4.

Test plan

  • 29 unit tests covering positive and negative cases for each rule
  • Full test suite passes (892 tests)
  • Lint passes (0 errors)
  • Vite build succeeds

Add a new stateless `validate_html` MCP tool that checks HTML/CSS against
Satori's rendering constraints without rasterizing. Returns structured
warnings (path + rule + message) in milliseconds, letting agents catch
layout bugs before the slow render step.
Rules: unsupported-position, no-style-block, multi-child-needs-flex,
no-br-tag, text-needs-nowrap, unsupported-css-property.
# Conflicts:
#	mcp-server/README.md
#	mcp-server/src/server.js
@trmquang93 trmquang93 merged commit ad2fbaa into main May 17, 2026
1 check passed
@github-actions github-actions Bot deleted the feat/validate-html branch May 17, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /