Home/Page Feedback Tool

Open Source Developer Utility

Client Click-to-Comment Widget & MCP Server for WordPress

Replace fragmented email threads and messy screenshots with a direct visual feedback overlay on staging or live websites. Clients click elements to comment; developers and AI agents resolve notes over MCP.

Download Plugin (.zip) ↓View on GitHub ↗
✦ Zero Dependencies (Vanilla JS)✦ Private CPT Storage✦ 7 Native MCP Tools✦ Standalone Zero-WP Mode
1

Client Click-to-Comment Overlay (widget.js)

Logged-in editors or visitors accessing with ?pfb=1 see the floating dock in the bottom-right corner. Clicking Feedback activates inspect mode (crosshair cursor). Hovering highlights elements with a dashed red outline; clicking locks the target with a solid red boundary (.fb-selected-box), opening the popover form with the calculated CSS selector, note input, and multi-file attachment uploader.

Page Feedback active click-to-comment mode with selected element and popover form
Figure 1: Element highlighted with solid red boundary, popover form showing exact CSS selector, note textarea, attachment picker, and marker pins.
2

Interactive Feedback Review Drawer (.fb-panel)

Clicking any numbered marker badge on the page or the dock badge opens the feedback drawer. Notes support 3 operational statuses:OPEN for pending tasks, NEEDS_INFO featuring a dedicated yellow question box from the team with an inline client reply form, and DONE with a green resolution box confirming the technical fix.

Page Feedback drawer panel showing open, needs reply, and done tickets
Figure 2: Slide-up drawer panel displaying active tickets, developer inquiry with inline client reply input, and verified resolution records.
3

WordPress Admin Private CPT (pfb_note)

Feedback items synchronize via /wp-json/pfb/v1/sync into WordPress as private Custom Post Type entries. Notes, metadata (selector, page path, viewport dimensions, client IP), and attachments in the Media Library remain strictly confidential. Administrators can filter notes by status (open, needs_info, done) and configure widget visibility in wp-admin.

WordPress Admin Page Feedback CPT dashboard and note management table
Figure 3: Private CPT note management with status filters, target URL slugs, CSS selectors, and resolution audit log.
4

Autonomous AI Agent & MCP Integration (mcp/server.py)

Equipped with the local Model Context Protocol (MCP) server, AI coding assistants (Antigravity, Cursor, Claude Code) connect securely via WordPress Application Passwords. Agents run pfb_list_notes to inspect pending client requests with exact CSS selectors and screenshot URLs, locate the component in the codebase, apply layout and styling code fixes, and auto-resolve tickets with pfb_mark_done.

Model Context Protocol server.py CLI and AI Agent resolution workflow
Figure 4: Python server.py exposing 7 native MCP tools, reading notes via REST, and executing autonomous code resolution.

Key Architecture & Technical Capabilities

  • Zero-bloat client widget: Pure vanilla JavaScript (~60KB unminified, 0 dependencies, no React, no jQuery). Loads only when enabled or via ?pfb=1.
  • Exact CSS Selector Extraction: Automatically computes unambiguous DOM hierarchy paths (e.g. #btn-explore-condos) with element text snippets and viewport dimensions.
  • Private CPT Architecture: Stores feedback in WordPress private post type pfb_note and Media Library, isolated from public frontend and theme templates.
  • Full MCP Tool Suite: 7 native MCP tools: pfb_list_sites, pfb_list_pages, pfb_list_notes, pfb_get_note, pfb_update_note, pfb_mark_done, and pfb_ask_client.
  • Zero-WP Standalone Mode: Includes standalone/widget.js and standalone/save.php for static HTML, Astro, Next.js, or PHP sites.

Installation & MCP Setup

# 1. Download and place in wp-content/plugins/

wp-content/plugins/page-feedback/

# 2. Activate via WP-CLI or Admin Dashboard

wp plugin activate page-feedback

# 3. Configure local MCP in ~/.page-feedback/sites.json

{
  "sites": [{
    "id": "client-site",
    "name": "Client Staging",
    "url": "https://staging.example.com",
    "user": "editor_username",
    "app_password": "xxxx xxxx xxxx xxxx xxxx xxxx",
    "verify_ssl": true
  }]
}

Ready to streamline client reviews & AI fixes?

Download the open-source plugin zip or inspect the codebase on GitHub.

Download Plugin (.zip) ↓GitHub Repository ↗