Skip to content

Custom agent: verify UI during generation using Preview MCP #180

Description

@kazo0

What
Have the Uno custom agent check its work visually with the Preview MCP while it generates, not only at the end.

Why
Today the agent writes the app the way a developer would, then checks that it works through the App MCP (running the app, exercising features, taking screenshots). That catches functional problems, but visual problems are only found late. Previews show the different states and variants of a page without running the app, so the agent can correct course after each page or component instead of after the whole app is built.

Scope

  • Add instructions or hints to the custom agent to render a preview after creating or significantly changing a page or control, and compare it against the spec or reference UI.
  • Use previews to check states (loading, empty, error, populated) and variants such as light/dark and narrow/wide.
  • Keep App MCP for end-to-end functional checks.

Done when

  • A benchmark comparison with and without in-loop preview verification shows the difference in visual fidelity, rework, time and token use.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions