@@ -16,6 +16,9 @@ pip install rmcp
1616```
1717
1818``` bash
19+ # Check R packages are installed
20+ rmcp check-r-packages
21+
1922# Start the MCP server
2023rmcp start
2124```
@@ -122,8 +125,42 @@ RMCP has been tested with real-world scenarios achieving **100% success rate**:
122125## 🔧 Installation & Setup
123126
124127### Prerequisites
125- - Python 3.8+
126- - R 4.0+ (automatically configured)
128+ - ** Python 3.8+**
129+ - ** R 4.0+** with required packages (see below)
130+
131+ #### R Package Requirements
132+
133+ RMCP requires the following R packages. Install all at once with:
134+
135+ ``` r
136+ # Install all required packages (recommended)
137+ install.packages(c(
138+ # Core statistical packages
139+ " jsonlite" , " plm" , " lmtest" , " sandwich" , " AER" , " dplyr" ,
140+ # Time series analysis
141+ " forecast" , " vars" , " urca" , " tseries" ,
142+ # Statistical testing
143+ " nortest" , " car" ,
144+ # Machine learning
145+ " rpart" , " randomForest" ,
146+ # Data visualization
147+ " ggplot2" , " gridExtra" , " tidyr" , " rlang"
148+ ), repos = " https://cran.rstudio.com/" )
149+ ```
150+
151+ ** Minimum Core Packages** (basic functionality only):
152+ ``` r
153+ install.packages(c(" jsonlite" , " plm" , " lmtest" , " sandwich" , " AER" ))
154+ ```
155+
156+ ** Feature-Specific Packages:**
157+ - ** Time Series Analysis** : ` forecast ` , ` vars ` , ` urca ` , ` tseries `
158+ - ** Machine Learning** : ` rpart ` , ` randomForest `
159+ - ** Data Visualization** : ` ggplot2 ` , ` gridExtra ` , ` tidyr ` , ` rlang `
160+ - ** Statistical Testing** : ` nortest ` , ` car `
161+ - ** Data Manipulation** : ` dplyr `
162+
163+ 💡 ** Tip** : Install all packages first to avoid errors. Missing packages will cause specific tools to fail with clear error messages.
127164
128165### Install via pip
129166``` bash
@@ -442,11 +479,30 @@ sudo apt-get install r-base
442479```
443480
444481** Missing R packages:**
482+
483+ First, check which packages are missing:
484+ ``` bash
485+ rmcp check-r-packages
486+ ```
487+
488+ Then install missing packages in R:
445489``` r
446- # In R console, install required packages
490+ # Install all RMCP packages (recommended)
491+ install.packages(c(
492+ " jsonlite" , " plm" , " lmtest" , " sandwich" , " AER" , " dplyr" ,
493+ " forecast" , " vars" , " urca" , " tseries" , " nortest" , " car" ,
494+ " rpart" , " randomForest" , " ggplot2" , " gridExtra" , " tidyr" , " rlang"
495+ ), repos = " https://cran.rstudio.com/" )
496+
497+ # Or install just core packages (limited functionality)
447498install.packages(c(" jsonlite" , " plm" , " lmtest" , " sandwich" , " AER" ))
448499```
449500
501+ ** Package installation fails:**
502+ - On Ubuntu/Debian: ` sudo apt-get install r-base-dev libcurl4-openssl-dev libssl-dev libxml2-dev `
503+ - On macOS with Homebrew: ` brew install r `
504+ - On Windows: Download from [ CRAN] ( https://cran.r-project.org/bin/windows/base/ )
505+
450506** MCP connection issues:**
451507``` bash
452508# Test server directly
0 commit comments