@quarri/claude-data-tools 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -89
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,98 +1,163 @@
|
|
|
1
|
-
# Quarri Claude
|
|
1
|
+
# Quarri Claude Plugin
|
|
2
2
|
|
|
3
3
|
Natural language data analysis with Quarri. Query databases, create visualizations, and get insights using plain English.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Claude Code
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
claude /install quarri
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Or manually add to your Claude Code configuration:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"quarri": {
|
|
19
|
+
"command": "npx",
|
|
20
|
+
"args": ["@quarri/claude-data-tools"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Claude Desktop
|
|
27
|
+
|
|
28
|
+
1. **Authenticate first** (one-time setup):
|
|
14
29
|
|
|
15
30
|
```bash
|
|
16
|
-
|
|
31
|
+
# New users - create a free trial account
|
|
32
|
+
npx @quarri/claude-data-tools signup
|
|
33
|
+
|
|
34
|
+
# Existing users - log in
|
|
35
|
+
npx @quarri/claude-data-tools auth
|
|
17
36
|
```
|
|
18
37
|
|
|
19
|
-
|
|
38
|
+
2. **Add to Claude Desktop config**:
|
|
39
|
+
|
|
40
|
+
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
41
|
+
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
20
42
|
|
|
21
43
|
```json
|
|
22
44
|
{
|
|
23
45
|
"mcpServers": {
|
|
24
46
|
"quarri": {
|
|
25
|
-
"command": "
|
|
47
|
+
"command": "npx",
|
|
48
|
+
"args": ["@quarri/claude-data-tools"]
|
|
26
49
|
}
|
|
27
50
|
}
|
|
28
51
|
}
|
|
29
52
|
```
|
|
30
53
|
|
|
54
|
+
3. **Restart Claude Desktop**
|
|
55
|
+
|
|
31
56
|
## Authentication
|
|
32
57
|
|
|
33
|
-
|
|
58
|
+
### New Users
|
|
59
|
+
|
|
60
|
+
Create a free trial account:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npx @quarri/claude-data-tools signup
|
|
64
|
+
```
|
|
34
65
|
|
|
35
|
-
|
|
66
|
+
You'll receive a verification email to complete signup.
|
|
67
|
+
|
|
68
|
+
### Existing Users
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npx @quarri/claude-data-tools auth
|
|
72
|
+
```
|
|
36
73
|
|
|
37
74
|
1. Enter your email address
|
|
38
75
|
2. Check your email for a 6-digit verification code
|
|
39
76
|
3. Enter the code to complete authentication
|
|
40
77
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
1. Select "invite" when prompted
|
|
44
|
-
2. Enter your email address
|
|
45
|
-
3. Enter the invitation token from your admin's email
|
|
46
|
-
4. Your account will be created automatically
|
|
78
|
+
Credentials are stored securely in `~/.quarri/credentials`.
|
|
47
79
|
|
|
48
80
|
## Features
|
|
49
81
|
|
|
50
|
-
###
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- `
|
|
68
|
-
- `
|
|
69
|
-
- `
|
|
70
|
-
- `
|
|
71
|
-
- `
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- `
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
- `
|
|
80
|
-
- `
|
|
81
|
-
- `
|
|
82
|
-
|
|
83
|
-
**Team
|
|
84
|
-
- `quarri_list_teams
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
- `
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
- `
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- `
|
|
82
|
+
### Interactive UI Components (MCP Apps)
|
|
83
|
+
|
|
84
|
+
Quarri returns rich, interactive UI components for data display:
|
|
85
|
+
|
|
86
|
+
- **Data Tables** - Sortable, paginated query results
|
|
87
|
+
- **Charts** - Interactive Plotly visualizations
|
|
88
|
+
- **Schema Explorer** - Visual database structure
|
|
89
|
+
- **Metrics Cards** - KPI displays with status badges
|
|
90
|
+
- **Logs View** - Syntax-highlighted log entries
|
|
91
|
+
- **Code View** - Syntax-highlighted source code
|
|
92
|
+
|
|
93
|
+
These render automatically in Claude Desktop and Claude Code when using supported tools.
|
|
94
|
+
|
|
95
|
+
### 39 Tools for Data Analysis
|
|
96
|
+
|
|
97
|
+
**Data Tools:**
|
|
98
|
+
- `quarri_execute_sql` - Run SQL queries → interactive data table
|
|
99
|
+
- `quarri_get_schema` - View database schema → schema explorer
|
|
100
|
+
- `quarri_search_values` - Semantic search → search results
|
|
101
|
+
- `quarri_get_metrics` - List defined metrics → metrics list
|
|
102
|
+
- `quarri_create_metric` - Define new metrics
|
|
103
|
+
- `quarri_approve_metric` - Approve pending metrics
|
|
104
|
+
- `quarri_get_metric_detail` - Metric details → metric card
|
|
105
|
+
- `quarri_search_metrics` - Search metrics → metrics list
|
|
106
|
+
|
|
107
|
+
**Configuration:**
|
|
108
|
+
- `quarri_list_agent_prompts` - View agent prompts → prompts list
|
|
109
|
+
- `quarri_update_agent_prompt` - Update prompts
|
|
110
|
+
- `quarri_list_rules` - Query generation rules → rules list
|
|
111
|
+
- `quarri_create_rule`, `quarri_update_rule`, `quarri_delete_rule`
|
|
112
|
+
- `quarri_vectorize_column_values` - Enable semantic search
|
|
113
|
+
- `quarri_list_searchable_columns` - View searchable columns → columns list
|
|
114
|
+
|
|
115
|
+
**Team & Security:**
|
|
116
|
+
- `quarri_list_teams` - Organization teams → teams list
|
|
117
|
+
- `quarri_get_team_filters` - Row-level security → filters view
|
|
118
|
+
- `quarri_get_team_restrictions` - Column restrictions → restrictions view
|
|
119
|
+
|
|
120
|
+
**Data Extraction:**
|
|
121
|
+
- `quarri_list_extraction_sources` - Data sources → sources list
|
|
122
|
+
- `quarri_configure_extraction` - Configure sources
|
|
123
|
+
- `quarri_discover_tables` - Discover tables → tables list
|
|
124
|
+
- `quarri_propose_transformation` - Propose transforms
|
|
125
|
+
- `quarri_upload_csv` - Upload CSV files
|
|
126
|
+
- `quarri_generate_quarri_schema` - Generate schema config
|
|
127
|
+
- `quarri_list_raw_tables` - Raw tables → tables list
|
|
128
|
+
|
|
129
|
+
**Connectors:**
|
|
130
|
+
- `quarri_get_connector_code` - View connector code → code view
|
|
131
|
+
- `quarri_get_connector_logs` - Connector logs → logs view
|
|
132
|
+
- `quarri_log_analysis_run` - Log analysis runs
|
|
133
|
+
- `quarri_schedule_extraction` - Schedule extractions
|
|
134
|
+
- `quarri_store_generated_code` - Save connector code
|
|
135
|
+
- `quarri_update_connector_code` - Update connector code
|
|
136
|
+
|
|
137
|
+
**Debug:**
|
|
138
|
+
- `quarri_read_server_logs` - Server logs → logs view
|
|
139
|
+
- `quarri_query_repl_activity` - Activity history → activity list
|
|
140
|
+
- `quarri_read_fly_logs` - Production logs → logs view
|
|
141
|
+
|
|
142
|
+
**Session:**
|
|
143
|
+
- `quarri_auth_status` - Check auth → auth status card
|
|
144
|
+
- `quarri_trial_status` - Trial info → trial status card
|
|
145
|
+
- `quarri_list_databases` - Available databases
|
|
146
|
+
- `quarri_select_database` - Switch database
|
|
147
|
+
|
|
148
|
+
### Skills (Slash Commands)
|
|
149
|
+
|
|
150
|
+
Quarri includes intelligent skills for common workflows:
|
|
151
|
+
|
|
152
|
+
- `/quarri-query` - Natural language to SQL
|
|
153
|
+
- `/quarri-analyze` - Full analysis pipeline
|
|
154
|
+
- `/quarri-chart` - Generate visualizations
|
|
155
|
+
- `/quarri-insights` - Statistical insights
|
|
156
|
+
- `/quarri-metric` - Define metrics interactively
|
|
157
|
+
- `/quarri-explain` - Explain SQL queries
|
|
158
|
+
- `/quarri-extract` - Create data pipelines
|
|
159
|
+
- `/quarri-diagnose` - Debug connector issues
|
|
160
|
+
- `/quarri-guide` - Quarri usage guide
|
|
96
161
|
|
|
97
162
|
## Usage Examples
|
|
98
163
|
|
|
@@ -102,64 +167,58 @@ On first use, you'll be prompted to authenticate:
|
|
|
102
167
|
What were our top 10 products by revenue last month?
|
|
103
168
|
```
|
|
104
169
|
|
|
105
|
-
Claude will
|
|
106
|
-
1. Generate SQL from your question
|
|
107
|
-
2. Execute the query
|
|
108
|
-
3. Perform statistical analysis
|
|
109
|
-
4. Generate a chart
|
|
110
|
-
5. Provide key insights
|
|
170
|
+
Claude will generate SQL, execute it, and return results in an interactive data table.
|
|
111
171
|
|
|
112
|
-
### Create a
|
|
172
|
+
### Create a Visualization
|
|
113
173
|
|
|
114
174
|
```
|
|
115
|
-
|
|
175
|
+
/quarri-chart Show monthly revenue trend for 2024
|
|
116
176
|
```
|
|
117
177
|
|
|
118
|
-
|
|
178
|
+
Returns an interactive Plotly chart rendered in the conversation.
|
|
119
179
|
|
|
120
|
-
###
|
|
180
|
+
### Define a Metric
|
|
121
181
|
|
|
122
182
|
```
|
|
123
|
-
|
|
183
|
+
/quarri-metric Help me define customer lifetime value
|
|
124
184
|
```
|
|
125
185
|
|
|
126
|
-
|
|
186
|
+
Guides you through defining a reusable metric with SQL template.
|
|
187
|
+
|
|
188
|
+
### Configure Semantic Search
|
|
127
189
|
|
|
128
|
-
|
|
190
|
+
```
|
|
191
|
+
Enable semantic search on the product_name column
|
|
192
|
+
```
|
|
129
193
|
|
|
130
|
-
|
|
194
|
+
Uses `quarri_vectorize_column_values` to enable natural language search on column values.
|
|
131
195
|
|
|
132
|
-
|
|
196
|
+
## Environment Variables
|
|
133
197
|
|
|
134
198
|
- `QUARRI_API_URL` - API endpoint (default: https://app.quarri.ai)
|
|
135
199
|
|
|
136
200
|
## Development
|
|
137
201
|
|
|
138
|
-
### Building
|
|
139
|
-
|
|
140
202
|
```bash
|
|
203
|
+
# Install dependencies
|
|
141
204
|
npm install
|
|
142
|
-
npm run build
|
|
143
|
-
```
|
|
144
205
|
|
|
145
|
-
|
|
206
|
+
# Build
|
|
207
|
+
npm run build
|
|
146
208
|
|
|
147
|
-
|
|
209
|
+
# Run tests
|
|
148
210
|
npm test
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Local Development
|
|
152
211
|
|
|
153
|
-
|
|
212
|
+
# Local development
|
|
154
213
|
npm run dev
|
|
155
214
|
```
|
|
156
215
|
|
|
157
|
-
## License
|
|
158
|
-
|
|
159
|
-
MIT
|
|
160
|
-
|
|
161
216
|
## Support
|
|
162
217
|
|
|
163
218
|
- GitHub Issues: https://github.com/djayatillake/quarri-claude-plugin/issues
|
|
164
219
|
- Documentation: https://docs.quarri.ai
|
|
165
220
|
- Email: support@quarri.ai
|
|
221
|
+
|
|
222
|
+
## License
|
|
223
|
+
|
|
224
|
+
MIT
|