GenClass MCP is an MCP server aimed primarily at Claude Code and other coding agents. Through the agent link of @genclass/runtime, it connects to application pages running locally on the developer's machine, enabling agents to observe and analyze issues such as race conditions, stale responses, and duplicate requests in pages.
In terms of purpose, the tool is designed to help developers locate frontend race-condition defects before users find them. It provides a chronological record of each click, request, response, response delivery order, what the response wrote to application state, and uncaught errors along with their associated clicks and requests. It can also identify defects that do not throw exceptions, such as stale responses overwriting newer data, the same order being submitted twice by two clicks, and the device-side model's own detection results.
Main capabilities include: genclass_explore re-executes steps with different network response orders (and optionally slower responses), reporting cases where results differ from in-order delivery; genclass_replay can deliver again the exact order that produced the defect, reproducing it before a fix and no longer reproducing it after the fix; genclass_explain writes a Playwright test that fails when the defect is present. In addition, genclass_status checks connection status, genclass_setup can read package.json and provide integration code for the corresponding framework, genclass_scan can load a specified page in a local browser, and genclass_analytics can read data from a self-hosted GenClass dashboard.
In terms of usage, users first need to install @genclass/runtime (the agent link requires 0.3.0-beta.1 or later; this version was tested with 0.3.0-beta.9) and add the corresponding code to the entry file of the development build; production builds remove this content. Then start the MCP server via npx -y @genclass/mcp@0.2.2 and configure it according to the client type, supporting Claude Code, Claude Desktop, Cursor, VS Code, Codex, Gemini CLI, Windsurf, Devin, Cline, Goose, Zed, JetBrains AI Assistant, Junie, opencode, and others. It can also be installed as a pluginwith a prompt hook and the genclass skill included; or install only the skill. The init command can automatically complete the agent link integration and write the skill file.
Applicable scenarios are mainly frontend development and debugging, especially for hard-to-reproduce issues such as "sometimes happens," "happens randomly," "only happens on slow connections," values reverting, stale results, lost edits, and duplicate submissions.
In terms of limitations, by default the server does not collect or send any data to GenClass or others; findings are stored locally in the .genclass/agent/ directory and in bridge memory. The bridge listens only on 127.0.0.1 and validates the Host header; pages can only be accessed from the local machine or from origins listed in GENCLASS_AGENT_ORIGINS. When GENCLASS_REPORT is set, loop logs are mirrored to the dashboard in a few small batches, but do not include titles, evidence lines, snapshots, or page text. genclass_scan sends the URL to genclass.dev for page checking only when hosted: true. The runtime code is intended only for development builds; using it in production is a separate choice. Information on enterprise services, pricing, and price details is not currently provided.