# rsdoctor

Feeds your agent Rspack build data: asset sizes, module dependencies, compilation timing and duplicate-package checks.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1149
- Author: web-infra-dev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/web-infra-dev/rsdoctor
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/rsdoctor

## What it does

Rsdoctor is a build analyzer for the Rspack ecosystem. The MCP server hands that data to an agent so it can work through build problems and suggest what to optimize.

What the server exposes: assets and their sizes, module dependencies, Loader and Plugin execution order, module resolution. Diagnostic checks come alongside — duplicate packages and ECMAScript syntax versions. All of it targets projects built with Rspack; you cannot point it at another bundler.

One `npx` command installs it, no config file needed. The server runs locally over stdio.

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

## Install

### Claude Code (native platform)

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

### Codex

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

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

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

## When to use it
- find what made the bundle grow
- see which modules pull in extra dependencies
- check whether packages are duplicated in the tree
- measure how long compilation takes
- catch outdated ECMAScript syntax in the output

## Example prompts
- Analyze the Rspack build and show me what weighs the most
- Find duplicate packages in the build
- Why did the build get slower — check the Rsdoctor data

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4402
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3450

---
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
