# GenClass

GenClass — an MCP server for Claude Code and other platforms that detects race conditions in web applications by reordering responses.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 11 repo stars
- Author: genclass-dev
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/genclass-dev/GenClass/tree/HEAD/packages/mcp
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/genclass

## What it does

The tool connects to a local web app instance and gives the coding agent a complete history of requests, responses, and state changes. The `genclass_explore` command replays execution steps with altered network response orders to catch stale data overrides and silent errors.

Execution happens locally on your machine with no external dependencies. A working Node.js environment is required to run the package via `npx`.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add genclass -- npx -y @genclass/mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp -- npx -y @genclass/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@genclass/mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@genclass/mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp npx -y @genclass/mcp
```

## When to use it
- detect silent state overwrite bugs
- reproduce network response race conditions
- verify fixes for race issues
- generate failing Playwright tests

## Example prompts
- Explore network reordering issues using `genclass_explore`
- Replay the exact response order that caused the bug
- Generate a failing test for the current race condition via `genclass_explain`

## Similar
- [test-specialist](https://affpapa.org/en/nevibecode/skills/test-specialist.md) — skill · 908 installs
- [debugging-streamlit](https://affpapa.org/en/nevibecode/skills/debugging-streamlit.md) — skill · 502 installs
- [browser-trace](https://affpapa.org/en/nevibecode/skills/browser-trace.md) — skill · 3100 installs
- [peek](https://affpapa.org/en/nevibecode/mcp/peek.md) — MCP server · ★ 9 repo stars
- [api-testing](https://affpapa.org/en/nevibecode/skills/api-testing.md) — skill · 1800 installs
- [w-api-test](https://affpapa.org/en/nevibecode/skills/w-api-test.md) — skill · 647 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
