Playhead

Coding agents (MCP)

Playhead ships an MCP server, so the agent already working in your repo can explore the app, write a grounded spec, render it, and read the verdict.

Register it

// .mcp.json
{
  "mcpServers": {
    "playhead": { "command": "npx", "args": ["-p", "playhead-cli", "playhead", "mcp"] }
  }
}

The tools an agent gets

ToolWhat it does
playhead_explorevalidated locators for the current screen — the agent’s ground truth
playhead_validate_specschema and locator check, no render
playhead_authordraft a spec toward a goal
playhead_rendercapture → compose → verify, returning the verdict with reasons and artifact paths
playhead_jiraattach the evidence and post a verdict comment to an issue

The loop

explore → write spec → render → read verdict → fix → re-render. The verdict is what makes this work unattended: the agent gets a machine-readable reason for every failure — this target was cropped, this click changed nothing, this frame was blank — instead of having to watch a video it cannot see.

Every locator the agent uses must come from an explore catalog. That single rule is the difference between a spec that renders and one that fails at capture time on invented element names.