Getting Started with SmartUI MCP Tool
SmartUI MCP Tool is part of the TestMu AI MCP Server. It lets you debug visual regressions from SmartUI builds: find the screenshots that changed, summarize each comparison, and approve or reject the result.
How Does It Work?
The SmartUI MCP Tool reads your SmartUI projects, builds and comparisons, and can act on them: approve or reject screenshots, merge baselines and upload screenshots as a new build. A typical flow:
- List your projects and builds with
smartui_list_projectsandsmartui_list_builds. - Check a build with
smartui_get_build_verdict, or list its screenshots withsmartui_list_comparisons. - Summarize one comparison with
smartui_analyze_comparisonand itscomparison_id. Passinclude_assets=inlineto attach the baseline, current and compared images so your AI client can look at them and describe what changed. - Approve or reject a screenshot by its
ss_id.
Available Tools
The SmartUI MCP Tool provides 13 tools.
| Tool | What it does | Access |
|---|---|---|
smartui_list_projects | List the SmartUI visual testing projects in the TestMu AI account: project_id, name, platform, project_type, approver, build_count and latest_build_status for each. | Read-only |
smartui_get_project | Get one SmartUI project with its settings: baseline_branch, approvers, smart_baseline, auto_approval_branch, overwrite_screenshot and project_category, alongside platform and project_type. | Read-only |
smartui_list_builds | List the builds in a SmartUI project, newest first: build_id, number, name, status, branch, baseline flag, commit and screenshot count. | Read-only |
smartui_get_build | Get one SmartUI build by build_id or exact build_name: status, branch, baseline flag, commit and screenshot count. | Read-only |
smartui_get_build_verdict | Gets a pass or fail verdict for a SmartUI build, for use as a CI gate. | Read-only |
smartui_list_comparisons | Lists the screenshots in a SmartUI build with their comparison against the baseline: mismatch percentage, status and image URLs. | Read-only |
smartui_get_comparison | Get one SmartUI comparison: mismatch %, status, and the baseline, current and compared image URLs, labelled by role. | Read-only |
smartui_analyze_comparison | Summarizes one SmartUI comparison: mismatch percentage, a mismatch band, status and the baseline, current and compared images. | Read-only |
smartui_upload_screenshots | Uploads PNG or JPEG screenshots to a SmartUI project as a new build. | Changes data (destructive) |
smartui_approve_screenshot | Approve screenshots in a SmartUI build. | Changes data (destructive) |
smartui_reject_screenshot | Reject screenshots in a SmartUI build. | Changes data (destructive) |
smartui_merge_branch_baseline | Merge the latest approved build of one branch into the latest approved build of another branch in the same SmartUI project, creating a build named merged-branch/<source>-<target>-<id> on the target branch. | Changes data (destructive) |
smartui_merge_build_baseline | Merges one SmartUI build into another in the same project and marks the result as the project baseline. This cannot be undone through the MCP server. | Changes data (destructive) |
Access shows what a tool can do to your account: Read-only tools only read data; Changes data tools create or edit something; destructive tools overwrite, delete, stop, approve, merge, spend credits or place calls, so your AI client may ask you to confirm before it runs them.
How to Invoke
Once your MCP client is connected, use natural language to interact with the SmartUI tool. Example prompts:
- "Did the latest SmartUI build of my Checkout project pass?"
- "Which screenshots changed in build
<build name>and by how much?" - "Analyze comparison
<comparison_id>and show me the images." - "Approve the header screenshot in that build."
Your AI client will route the request to the appropriate tool.
Error Handling
If a project, build or comparison id is wrong, or the comparison has no images yet, the tool returns a plain message saying what is missing. Use the list tools to find the right id and retry.