You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+92-69Lines changed: 92 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
RMCP is a Model Context Protocol (MCP) server that provides advanced econometric modeling and data analysis capabilities through R. It enables AI assistants to perform sophisticated econometric and statistical analyses by bridging Python MCP protocols with R statistical computing.
7
+
RMCP is a Model Context Protocol (MCP) server that provides comprehensive statistical analysis capabilities through R. **Version 0.3.6** includes 40 statistical analysis tools across 9 categories, enabling AI assistants to perform sophisticated statistical modeling, econometric analysis, machine learning, time series analysis, and data science tasks through natural conversation.
8
8
9
9
## Key Architecture Components
10
10
@@ -13,38 +13,48 @@ RMCP is a Model Context Protocol (MCP) server that provides advanced econometric
13
13
-**STDIO Interface**: Located in `rmcp/server/stdio.py`, manages standard input/output communication with MCP clients
14
14
-**CLI Interface**: `rmcp/cli.py` provides command-line interface with `start`, `version` commands
15
15
16
-
### Tool System
17
-
The server implements comprehensive econometric and statistical tools as Python functions that execute R scripts:
16
+
### Tool System (40 Tools Across 9 Categories)
17
+
The server implements comprehensive statistical analysis tools as Python functions that execute R scripts:
18
18
19
-
#### Core Econometric Tools
20
-
-**Regression Tools** (`rmcp/tools/regression.py`): Linear models, panel data analysis, IV regression
21
-
-**Diagnostics** (`rmcp/tools/diagnostics.py`): Model diagnostic tests (heteroskedasticity, autocorrelation, etc.)
-**File Operations** (`rmcp/tools/fileops.py`): CSV, Excel, JSON import/export, data filtering, data info
53
+
54
+
#### Natural Language & User Experience (NEW)
55
+
-**Formula Builder** (`rmcp/tools/formula_builder.py`): Convert natural language to R formulas, validate formulas
56
+
-**Error Recovery** (`rmcp/tools/helpers.py`): Intelligent error diagnosis, data validation, example datasets
57
+
48
58
### R Integration
49
59
-**Common Utilities** (`rmcp/tools/common.py`): Contains `execute_r_script()` function that creates temporary files, executes R code, and parses JSON results
50
60
-**Required R Packages**:
@@ -72,14 +82,17 @@ poetry shell
72
82
73
83
### CLI Commands
74
84
```bash
75
-
# Check version
76
-
poetry run rmcp version
85
+
# Check version (should show 0.3.6)
86
+
rmcp --version
77
87
78
88
# Start server (auto-detects MCP protocol vs legacy JSON)
79
-
poetry run rmcp start
89
+
rmcp start
90
+
91
+
# List available tools (should show 40 tools)
92
+
rmcp list-capabilities
80
93
81
-
#Run development server
82
-
poetry run rmcp dev [optional_dev_server_file]
94
+
#Start with debug logging
95
+
rmcp start --log-level DEBUG
83
96
```
84
97
85
98
### Development Scripts (via Poetry)
@@ -94,22 +107,19 @@ poetry run lint
94
107
poetry run test
95
108
```
96
109
97
-
### Testing
110
+
### Testing (Comprehensive Test Suite)
98
111
```bash
99
-
# Run comprehensive tool testing
100
-
./tests/test_all_tools.sh
112
+
# Run all tests in organized sequence (unit → integration → e2e)
0 commit comments