Rsdoctor

io.github.yifancong由 GitHub 账号 yifancong 发布v0.1.0更新于 Oct 24, 2026

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

已验证STDIO仅桌面开发者工具

概览

AI 生成的概览

一个 MCP 服务器,用于分析 Rspack 构建并给出构建性能与产物的优化建议。

可以做什么
Rsdoctor 是面向 Rspack 项目的构建分析器。它可视化编译行为与耗时,并分析构建产物,例如资源列表和模块依赖。它还分析 Loader、Plugin 和 Resolver 的构建过程,并应用重复包检测、ES 版本检查等构建规则。用户可基于其收集的构建数据添加自定义扫描规则。
适用场景
当你使用 Rspack 项目,并希望助手帮助定位构建瓶颈、检查模块与依赖结构或审查构建过程行为时,可以使用它。它面向优化构建性能和工程质量的开发团队。
运行要求
作为本地 stdio 进程运行,通过 Node.js 启动 npm 包 @rsdoctor/mcp-server。仅支持桌面端,声明无需认证、环境变量或请求头。它面向 Rspack 项目;webpack 项目被建议继续使用 Rsdoctor 1.x 或迁移到 Rspack。
安装前请注意
该服务器会分析你项目的构建数据,因此构建产物和配置可能被读取并与助手共享。所提供信息中未声明需要凭据、支付或写入操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Rsdoctor,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Rsdoctor Banner]

Rsdoctor

[discord channel] [npm version] [downloads] [license]

English | 简体中文

Rsdoctor is a build analysis tool for the Rspack ecosystem. It visualizes the build process and output to help developers investigate build issues and identify performance bottlenecks. It also provides build data to agents for automated diagnosis and optimization of JavaScript programs.

🔥 Features

  • Agent-Driven Analysis: Provides build data to agents for automated diagnosis and optimization of JavaScript programs
  • Compilation Visualization: Visualize the compilation process and timing to troubleshoot build issues and identify performance bottlenecks
  • Comprehensive Analysis: Analyze build output, inspect the build process, and run diagnostic checks:
    • Output Analysis: Inspect assets, output sizes, and module dependencies
    • Build Process Analysis: Inspect Loader and Plugin execution and module resolution
    • Diagnostic Checks: Detect duplicate packages and check ECMAScript syntax versions to identify potential build issues

📚 Getting started

To get started with Rsdoctor, see the Quick Start.

🤝 Contribution

New contributors welcome!

Please read the Contributing Guide.

🧑‍💻 Community

Come and chat with us on Discord! The Rstack team and users are active there, and we're always looking for contributions.

🦀 Rstack

Rsdoctor is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.

NameDescriptionVersion
RspackBundler[npm version]
RsbuildBuild tool[npm version]
RslibLibrary development tool[npm version]
RspressStatic site generator[npm version]
RsdoctorBuild analyzer[npm version]
RstestTesting framework[npm version]
RslintLinter[npm version]
Rstack CLIUnified CLI[npm version]

🙌 Code of conduct

This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of Conduct for more details.

🙏 Credits

Some of the implementation of Rsdoctor refers to the excellent projects in the community, and we would like to thank them:

  • bundle-stats is an excellent tool for analyzing build artifacts, and Rsdoctor is inspired by it in terms of build analysis.
  • webpack-bundle-analyzer is a classic tool for analyzing Webpack, and Rsdoctor is inspired by it in terms of build artifact analysis. Rsdoctor also uses its classic treemap visualization.
  • Statoscope is an excellent tool for analyzing build artifacts, and Rsdoctor is inspired by it in terms of build analysis.
  • Webpack Team and Community have created an excellent bundling tool and a rich ecosystem.
  • vite-plugin-inspect has inspired Rsdoctor's exploration of build process analysis.

This Rsdoctor website is powered by Netlify.

📖 License

Rsdoctor is licensed under the MIT License.

来源:README.md,提交 039497c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分