# rsdoctor [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/web-infra-dev/rsdoctor  
**GitHub Stars:** 1152  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rsdoctor

## Description
An MCP server that provides build analysis and optimization recommendations for Rspack projects.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What rsdoctor MCP server does

rsdoctor MCP server connects agent workflows with build analysis for projects in the Rspack ecosystem. Rsdoctor examines both how a build runs and what it produces, giving developers and agents information to investigate build issues, understand performance bottlenecks, and identify possible optimization opportunities in JavaScript programs.

The analysis spans compilation timing, generated assets, output sizes, module dependencies, loader and plugin execution, and module resolution. It also includes diagnostic checks for duplicate packages and ECMAScript syntax versions. These checks can help explain unexpected output, identify avoidable dependency duplication, and find syntax-level compatibility concerns in a build.

## How it works

Rsdoctor analyzes Rspack build data and makes that information available to agents. The agent can use the resulting data to examine the compilation process, compare the relative cost of build stages, inspect output composition, and investigate relationships between modules and dependencies.

Compilation visualization provides a way to follow build timing and processing behavior rather than looking only at the final bundle. Output analysis adds visibility into assets and their sizes, while build-process analysis focuses on loaders, plugins, and module resolution. Together, these views support diagnosis from both the source-processing and generated-output sides of a build.

Agent-driven analysis is intended for automated diagnosis and optimization of JavaScript programs. Rsdoctor therefore fits workflows where an agent needs structured build information to guide investigation instead of relying only on a developer’s manual inspection of build logs or artifacts.

## Tools and capabilities

- Inspect generated assets and output sizes.
- Examine module dependencies within build output.
- Visualize compilation steps and timing.
- Inspect loader and plugin execution.
- Review module-resolution behavior.
- Run checks for duplicate packages and ECMAScript syntax versions.

These capabilities are relevant to both troubleshooting and optimization. For example, output inspection can help locate unusually large assets, while process analysis can point toward expensive loaders, plugins, or resolution behavior. Diagnostic checks provide additional signals for dependency and syntax-related build problems.

## Limitations and notes

Rsdoctor is designed around the Rspack ecosystem and its build analysis model. Its documented analysis areas center on compilation, output, dependencies, build processing, and diagnostics for JavaScript programs. It is best suited to developers working with Rspack builds who need visibility into build behavior or want agents to assist with diagnosis and optimization.

Rsdoctor is part of the broader Rstack toolchain, alongside projects such as Rspack, Rsbuild, Rslib, Rspress, Rstest, Rslint, and the Rstack CLI. The project is licensed under the MIT License.

_Full upstream README: https://allmcps.com/mcp/rsdoctor/readme_

