Magento 2 Debug Bar provides comprehensive request profiling for Magento 2 stores, designed specifically for both human developers and AI coding agents. Every page, AJAX, GraphQL, and REST request records an isolated, redacted JSON profile that developers can inspect through an isolated shadow-root debug bar compatible with Hyvä, Luma, and custom themes. In addition to visualizing live Alpine.js and Magewire components, block render times, and database query call sites, it runs an MCP server over stdio so AI coding assistants can query diagnostic findings, profile diffs, and query waterfalls as structured evidence.
主要功能
01Exposes read-only MCP tools for AI agents to inspect profiles, query patterns, findings, and SEO data directly
02Inspects live client-side state for Alpine.js and Magewire components alongside Core Web Vitals and data layers
03Safeguards environments with query parameter key sanitization, strict PII redaction, and access controls outside developer mode
04Captures 17 diagnostic sections including timeline waterfalls, query call sites, layout handles, and cache hit rates
0531 GitHub stars
06Detects automated performance findings such as N+1 queries, slow observers, uncached blocks, and full-page cache misses
使用案例
01Troubleshooting slow Magento 2 page loads, observer overhead, and N+1 database queries during local development
02Providing AI coding assistants with verifiable profiling evidence via MCP to diagnose and resolve bugs accurately
03Comparing performance metrics before and after code modifications to evaluate database and memory impact