Engineering Architecture Guide

Automating Website Bug Fixing with the Model Context Protocol (MCP)

Published by the BotDigit Platform Engineering Team · 8 min read

1. Why Visual Review Tools Must Evolve Beyond Jira Tickets

Traditional website feedback tools (BugHerd, Marker.io, Pastel) were built for human-only workflows in 2018. They take a screenshot, capture screen coordinates, and dump a ticket into Jira or Trello. The developer still has to manually navigate to the page, guess which CSS rule is misaligned, write a fix, and argue with the client over whether it was fixed.

BotDigit Visual Review 2.0 transforms feedback pins into machine-readable dossiers using the Model Context Protocol (MCP). AI coding agents don’t just get a PNG; they get the element tag, selector, computed bounding box, text sha256 hash, and full repository context.

2. The Architectural Loop

  1. Pin Capture: The client clicks an element. The browser captures a crop, DOM selector, and text hash.
  2. Task Creation: A traceable task is generated with strict state management.
  3. MCP Tool Ingestion: Claude Code or Cursor queries get_feedback_item.
  4. Isolated Branch Fix: The agent cuts a branch fix/issue-*, edits the code, and builds.
  5. Playwright Verification: request_visual_verification runs headless Chromium tests to prove the fix.
  6. Client Sign-Off: Client approves verified preview in 1 click.

3. Security & Safety Gates

Automated fixing requires strict boundaries. Production branches remain protected, SSRF filters block private network exploitation during automated Playwright captures, and task completion strictly requires visual diff evidence.

Explore Native MCP Tools

Check out the complete specification of all 9 visual review tools and installation commands.

View MCP Specification