Skip to content

Commit f0cffd7

Browse files
authored
Merge pull request #31 from rafiattrach/improve-readme-installation
Improve README installation instructions and platform-specific commands
2 parents aac76b8 + 5a40b7b commit f0cffd7

File tree

1 file changed

+69
-24
lines changed

1 file changed

+69
-24
lines changed

README.md

Lines changed: 69 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,61 @@ Transform medical data analysis with AI! Ask questions about MIMIC-IV data in pl
2222

2323
> 💡 **Need more options?** Run `m3 --help` to see all available commands and options.
2424
25-
### Prerequisites
25+
### 📦 Installation
2626

27+
Choose your preferred installation method:
28+
29+
#### Option A: Install from PyPI (Recommended)
30+
31+
**Step 1: Create Virtual Environment**
2732
```bash
2833
# Create virtual environment (recommended)
2934
python -m venv .venv
3035
source .venv/bin/activate # Windows: .venv\Scripts\activate
3136
```
3237

33-
### Option 1: Local Demo (Recommended for Beginners)
38+
**Step 2: Install M3**
39+
```bash
40+
# Install M3
41+
pip install m3-mcp
42+
```
3443

35-
**Perfect for learning and development - completely free!**
44+
#### Option B: Install from Source
3645

37-
1. **Install M3**:
38-
```bash
39-
pip install -e .
40-
```
46+
**Step 1: Clone and Navigate**
47+
```bash
48+
# Clone the repository
49+
git clone https://github.com/rafiattrach/m3.git
50+
cd m3
51+
```
52+
53+
**Step 2: Create Virtual Environment**
54+
```bash
55+
# Create virtual environment
56+
python -m venv .venv
57+
source .venv/bin/activate # Windows: .venv\Scripts\activate
58+
```
59+
60+
**Step 3: Install M3**
61+
```bash
62+
# Install M3
63+
pip install .
64+
```
4165

42-
2. **Download demo database**:
66+
### 🗄️ Database Configuration
67+
68+
After installation, choose your data source:
69+
70+
#### Option A: Local Demo Database (Recommended for Beginners)
71+
72+
**Perfect for learning and development - completely free!**
73+
74+
1. **Download demo database**:
4375
```bash
4476
m3 init mimic-iv-demo
4577
```
4678

47-
3. **Setup MCP Client**:
79+
2. **Setup MCP Client**:
4880
```bash
4981
m3 config
5082
```
@@ -54,42 +86,42 @@ source .venv/bin/activate # Windows: .venv\Scripts\activate
5486
m3 config claude
5587
```
5688

57-
4. **Restart your MCP client** and ask:
89+
3. **Restart your MCP client** and ask:
5890

5991
- "What tools do you have for MIMIC-IV data?"
6092
- "Show me patient demographics from the ICU"
6193

62-
### Option 2: BigQuery (Full Dataset)
94+
#### Option B: BigQuery (Full Dataset)
6395

6496
**For researchers needing complete MIMIC-IV data**
6597

66-
#### Prerequisites
98+
##### Prerequisites
6799
- Google Cloud account and project with billing enabled
68100
- Access to MIMIC-IV on BigQuery (requires PhysioNet credentialing)
69101

70-
#### Setup Steps
102+
##### Setup Steps
71103

72104
1. **Install Google Cloud CLI**:
105+
106+
**macOS (with Homebrew):**
73107
```bash
74-
# macOS (with Homebrew)
75108
brew install google-cloud-sdk
109+
```
76110

77-
# Windows: Download from https://cloud.google.com/sdk/docs/install
78-
# Linux
111+
**Windows:** Download from https://cloud.google.com/sdk/docs/install
112+
113+
**Linux:**
114+
```bash
79115
curl https://sdk.cloud.google.com | bash
80116
```
81117

82118
2. **Authenticate**:
83119
```bash
84120
gcloud auth application-default login
85121
```
122+
*This will open your browser - choose the Google account that has access to your BigQuery project with MIMIC-IV data.*
86123

87-
3. **Install M3**:
88-
```bash
89-
pip install -e .
90-
```
91-
92-
4. **Setup MCP Client for BigQuery**:
124+
3. **Setup MCP Client for BigQuery**:
93125
```bash
94126
m3 config
95127
```
@@ -99,7 +131,7 @@ source .venv/bin/activate # Windows: .venv\Scripts\activate
99131
m3 config claude --backend bigquery --project-id YOUR_PROJECT_ID
100132
```
101133

102-
5. **Test BigQuery Access** - Restart your MCP client and ask:
134+
4. **Test BigQuery Access** - Restart your MCP client and ask:
103135
```
104136
Use the get_race_distribution function to show me the top 5 races in MIMIC-IV admissions.
105137
```
@@ -262,12 +294,25 @@ gcloud auth list
262294

263295
### Development Setup
264296

297+
**Step 1: Clone and Navigate**
265298
```bash
266-
git clone https://github.com/rafiattrach/m3 # HTTPS as an example
299+
# Clone the repository
300+
git clone https://github.com/rafiattrach/m3.git
267301
cd m3
302+
```
303+
304+
**Step 2: Create and Activate Virtual Environment**
305+
```bash
306+
# Create virtual environment
268307
python -m venv .venv
269308
source .venv/bin/activate # Windows: .venv\Scripts\activate
309+
```
310+
311+
**Step 3: Install Development Dependencies**
312+
```bash
313+
# Install in development mode with dev dependencies
270314
pip install -e ".[dev]"
315+
# Install pre-commit hooks
271316
pre-commit install
272317
```
273318

0 commit comments

Comments
 (0)