rsdoctor icon indicating copy to clipboard operation
rsdoctor copied to clipboard

rsdoctor-mcp-server

Open easy1090 opened this issue 6 months ago • 5 comments

RFC: rsdoctor-mcp-server

Introduction

Currently, Rsdoctor possesses a variety of analytical capabilities and collects a wealth of analytical data. However, some features on Rsdoctor's pages require users to spend time reading documentation to understand them. Considering the continuous advancement of MCP and AI technologies, we aim to leverage AI to provide users with targeted build issue analysis services.

Integrating Rsdoctor with AI technology can more efficiently help users solve problems related to build analysis and optimization. Additionally, the application form of the MCP Server is highly controllable and has the ability to learn relevant background knowledge, effectively addressing challenges users encounter during the build analysis process.

Objectives

Product Information Retrieval

  • Retrieve Chunks information
  • Retrieve Module information
  • Retrieve Package information

Dependency Chain Issues

  • Find the dependency chain of a specific Module
  • Find the dependency relationship of a specific Package

Product Optimization Issues

  • How to optimize products based on current build analysis results
    • Duplicate packages
    • Similar packages
    • Large Chunk size alerts
    • Image and media resource optimization

Compilation Time Optimization

  • Identify time-consuming Loaders
  • Identify files associated with time-consuming Loaders
  • How to optimize Loader compilation

Tree Shaking Failure Reasons (Next)

Conclusion

By integrating AI with Rsdoctor, we aim to provide a more intuitive and efficient way for users to analyze and optimize their builds. This integration will not only enhance the user experience but also improve the overall efficiency of the build process.

Current progress:

Tasks

  • [x] Product Information Retrieval
  • [x] Dependency Chain Issues
  • [x] Product Optimization Issues
  • [x] Compilation Time Optimization
  • [x] Documentation for Rsdoctor MCP Server
  • [ ] CI Tests

easy1090 avatar Apr 14 '25 03:04 easy1090