@crush-protocol/mcp-client 0.4.4 → 0.4.6
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 +20 -489
- package/dist/cli.js +0 -0
- package/package.json +68 -67
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,56 +1,37 @@
|
|
|
1
1
|
# Crush Protocol MCP Client
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
[](https://www.npmjs.com/package/@crush-protocol/mcp-client)
|
|
6
|
-
[](
|
|
7
|
-
[](https://www.crush.xyz/)
|
|
8
|
-
[](https://github.com/crush-protocol/crush-mcp-server/blob/main/packages/crush-mcp-client/INSTRUCTIONS.md)
|
|
9
|
-
|
|
10
|
-
Connect Cursor, Claude Code, Codex, Gemini CLI, Windsurf, VS Code, and other MCP hosts to Crush through one npm package.
|
|
4
|
+
[](https://github.com/crush-protocol/crush-mcp-server/blob/main/LICENSE)
|
|
11
5
|
|
|
12
|
-
|
|
6
|
+
Official MCP client for connecting Cursor, Claude Code, Codex, Gemini CLI, Windsurf, VS Code, and other MCP hosts to Crush.
|
|
13
7
|
|
|
14
8
|
## For AI Agents
|
|
15
9
|
|
|
16
10
|
Package name: `@crush-protocol/mcp-client`
|
|
17
11
|
|
|
18
|
-
|
|
12
|
+
Treat these names as the same product:
|
|
19
13
|
|
|
20
14
|
- `Crush`
|
|
21
15
|
- `Crush MCP`
|
|
22
16
|
- `Crush Protocol MCP`
|
|
23
17
|
- `@crush-protocol/mcp-client`
|
|
24
18
|
|
|
25
|
-
Recommended
|
|
19
|
+
Recommended flow:
|
|
26
20
|
|
|
27
21
|
```sh
|
|
28
22
|
npx -y @crush-protocol/mcp-client setup --cursor
|
|
29
23
|
npx -y @crush-protocol/mcp-client login
|
|
30
24
|
```
|
|
31
25
|
|
|
32
|
-
If
|
|
26
|
+
If Crush was already installed but is not working:
|
|
33
27
|
|
|
34
28
|
```sh
|
|
35
29
|
npx -y @crush-protocol/mcp-client auth:status
|
|
36
30
|
npx -y @crush-protocol/mcp-client doctor
|
|
37
31
|
```
|
|
38
32
|
|
|
39
|
-
## Why Crush
|
|
40
|
-
|
|
41
|
-
| Direction | What it gives you | Typical asks |
|
|
42
|
-
| --- | --- | --- |
|
|
43
|
-
| Market Data | Tokens, indicators, timeframes, OHLCV, derived signals | `Fetch OHLCV data for BTC.` |
|
|
44
|
-
| Backtesting | Schema discovery, token universe, expression validation, async backtests | `Create a moving-average crossover backtest.` |
|
|
45
|
-
| Live Strategies | Create, inspect, activate, pause, and monitor strategies | `List my active strategies.` |
|
|
46
|
-
| Market Intelligence | Token metadata, trending feeds, alpha, token-specific context | `Show the latest alpha for SOL.` |
|
|
47
|
-
|
|
48
|
-
Detailed tool guidance lives in [INSTRUCTIONS.md](https://github.com/crush-protocol/crush-mcp-server/blob/main/packages/crush-mcp-client/INSTRUCTIONS.md).
|
|
49
|
-
|
|
50
33
|
## Quick Start
|
|
51
34
|
|
|
52
|
-
Crush works best with this 3-step flow:
|
|
53
|
-
|
|
54
35
|
```sh
|
|
55
36
|
npx -y @crush-protocol/mcp-client setup --cursor
|
|
56
37
|
npx -y @crush-protocol/mcp-client login
|
|
@@ -61,280 +42,38 @@ npx -y @crush-protocol/mcp-client ping
|
|
|
61
42
|
2. `login` opens the browser once and stores OAuth credentials locally.
|
|
62
43
|
3. `ping` confirms this machine can reach the hosted Crush MCP.
|
|
63
44
|
|
|
64
|
-
The official hosted Crush MCP is built in. End users do not need to paste a server URL.
|
|
65
|
-
|
|
66
|
-
If you want to configure every supported host on the machine at once:
|
|
67
|
-
|
|
68
|
-
```sh
|
|
69
|
-
npx -y @crush-protocol/mcp-client setup --all
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Two Ways To Connect
|
|
73
|
-
|
|
74
|
-
### 1. Recommended: Setup Helper
|
|
75
|
-
|
|
76
|
-
Use the setup command when you want Crush to install the MCP entry for you:
|
|
77
|
-
|
|
78
|
-
```sh
|
|
79
|
-
npx -y @crush-protocol/mcp-client setup --cursor
|
|
80
|
-
npx -y @crush-protocol/mcp-client setup --claude
|
|
81
|
-
npx -y @crush-protocol/mcp-client setup --codex
|
|
82
|
-
npx -y @crush-protocol/mcp-client setup --all
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
After `setup`, restart the host once, then run:
|
|
86
|
-
|
|
87
|
-
```sh
|
|
88
|
-
npx -y @crush-protocol/mcp-client login
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### 2. Manual: Standard MCP Host Config
|
|
92
|
-
|
|
93
|
-
If your MCP host prefers manual config, this is the canonical local stdio entry:
|
|
94
|
-
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"mcpServers": {
|
|
98
|
-
"crush-protocol": {
|
|
99
|
-
"command": "npx",
|
|
100
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
Most MCP hosts can run Crush with exactly this command shape.
|
|
45
|
+
The official hosted Crush MCP URL is built in. End users do not need to paste a server URL.
|
|
107
46
|
|
|
108
|
-
##
|
|
47
|
+
## What You Can Do
|
|
109
48
|
|
|
110
|
-
|
|
49
|
+
- Market data: tokens, indicators, timeframes, OHLCV
|
|
50
|
+
- Backtests: schema discovery, token universe, expression validation, backtest execution
|
|
51
|
+
- Live strategies: create, inspect, activate, pause, monitor
|
|
52
|
+
- Market intelligence: token info, trending feeds, alpha context
|
|
111
53
|
|
|
112
|
-
|
|
113
|
-
| --- | --- | --- |
|
|
114
|
-
| Cursor | `setup --cursor` or one-click install | Supports MCP install deeplink |
|
|
115
|
-
| Claude Code | `setup --claude` or `claude mcp add ...` | Good for terminal-first workflows |
|
|
116
|
-
| OpenAI Codex | `setup --codex` | Uses `~/.codex/config.toml` |
|
|
117
|
-
| Gemini CLI | `setup --gemini` | Uses `~/.gemini/settings.json` |
|
|
118
|
-
| OpenCode | `setup --opencode` | Uses `~/.config/opencode/opencode.json` |
|
|
119
|
-
| VS Code | `setup --vscode --scope project` | Good for repo-local setups |
|
|
120
|
-
| Windsurf | `setup --windsurf` | Standard JSON MCP config |
|
|
121
|
-
| Claude Desktop | `setup --claude-desktop` | Desktop app config |
|
|
122
|
-
| Warp | `setup --warp` | Warp MCP config |
|
|
54
|
+
Detailed tool guidance:
|
|
123
55
|
|
|
124
|
-
|
|
56
|
+
- [INSTRUCTIONS.md](https://github.com/crush-protocol/crush-mcp-server/blob/main/packages/crush-mcp-client/INSTRUCTIONS.md)
|
|
125
57
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Cursor
|
|
129
|
-
|
|
130
|
-
<details>
|
|
131
|
-
<summary>Show install steps</summary>
|
|
132
|
-
|
|
133
|
-
[Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol)
|
|
134
|
-
|
|
135
|
-
Setup helper:
|
|
136
|
-
|
|
137
|
-
```sh
|
|
138
|
-
npx -y @crush-protocol/mcp-client setup --cursor
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
[](https://cursor.com/install-mcp?name=crush-protocol&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjcnVzaC1wcm90b2NvbC9tY3AtY2xpZW50Il19)
|
|
142
|
-
|
|
143
|
-
Manual config:
|
|
144
|
-
|
|
145
|
-
```json
|
|
146
|
-
{
|
|
147
|
-
"mcpServers": {
|
|
148
|
-
"crush-protocol": {
|
|
149
|
-
"command": "npx",
|
|
150
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
</details>
|
|
157
|
-
|
|
158
|
-
### Claude Code
|
|
159
|
-
|
|
160
|
-
<details>
|
|
161
|
-
<summary>Show install steps</summary>
|
|
162
|
-
|
|
163
|
-
[Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp)
|
|
58
|
+
## Install
|
|
164
59
|
|
|
165
60
|
Recommended:
|
|
166
61
|
|
|
167
62
|
```sh
|
|
168
|
-
npx -y @crush-protocol/mcp-client setup --
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Host-native command:
|
|
172
|
-
|
|
173
|
-
```sh
|
|
174
|
-
claude mcp add --scope user crush-protocol -- npx -y @crush-protocol/mcp-client
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
</details>
|
|
178
|
-
|
|
179
|
-
### OpenAI Codex
|
|
180
|
-
|
|
181
|
-
<details>
|
|
182
|
-
<summary>Show install steps</summary>
|
|
183
|
-
|
|
184
|
-
[OpenAI Codex MCP docs](https://developers.openai.com/codex/mcp)
|
|
185
|
-
|
|
186
|
-
Recommended:
|
|
187
|
-
|
|
188
|
-
```sh
|
|
189
|
-
npx -y @crush-protocol/mcp-client setup --codex
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
Host-native command:
|
|
193
|
-
|
|
194
|
-
```sh
|
|
195
|
-
codex mcp add crush-protocol -- npx -y @crush-protocol/mcp-client
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Manual config:
|
|
199
|
-
|
|
200
|
-
```toml
|
|
201
|
-
[mcp_servers.crush-protocol]
|
|
202
|
-
command = "npx"
|
|
203
|
-
args = ["-y", "@crush-protocol/mcp-client"]
|
|
204
|
-
startup_timeout_ms = 20000
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
</details>
|
|
208
|
-
|
|
209
|
-
### Gemini CLI
|
|
210
|
-
|
|
211
|
-
<details>
|
|
212
|
-
<summary>Show install steps</summary>
|
|
213
|
-
|
|
214
|
-
[Gemini CLI MCP docs](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html)
|
|
215
|
-
|
|
216
|
-
Recommended:
|
|
217
|
-
|
|
218
|
-
```sh
|
|
219
|
-
npx -y @crush-protocol/mcp-client setup --gemini
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
Manual config:
|
|
223
|
-
|
|
224
|
-
```json
|
|
225
|
-
{
|
|
226
|
-
"mcpServers": {
|
|
227
|
-
"crush-protocol": {
|
|
228
|
-
"command": "npx",
|
|
229
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
</details>
|
|
236
|
-
|
|
237
|
-
### OpenCode
|
|
238
|
-
|
|
239
|
-
<details>
|
|
240
|
-
<summary>Show install steps</summary>
|
|
241
|
-
|
|
242
|
-
[OpenCode MCP docs](https://opencode.ai/docs/mcp-servers)
|
|
243
|
-
|
|
244
|
-
Recommended:
|
|
245
|
-
|
|
246
|
-
```sh
|
|
247
|
-
npx -y @crush-protocol/mcp-client setup --opencode
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
Manual config:
|
|
251
|
-
|
|
252
|
-
```json
|
|
253
|
-
{
|
|
254
|
-
"$schema": "https://opencode.ai/config.json",
|
|
255
|
-
"mcp": {
|
|
256
|
-
"crush-protocol": {
|
|
257
|
-
"type": "local",
|
|
258
|
-
"command": ["npx", "-y", "@crush-protocol/mcp-client"],
|
|
259
|
-
"enabled": true
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
</details>
|
|
266
|
-
|
|
267
|
-
### VS Code
|
|
268
|
-
|
|
269
|
-
<details>
|
|
270
|
-
<summary>Show install steps</summary>
|
|
271
|
-
|
|
272
|
-
[VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)
|
|
273
|
-
|
|
274
|
-
Recommended project-local setup:
|
|
275
|
-
|
|
276
|
-
```sh
|
|
277
|
-
npx -y @crush-protocol/mcp-client setup --vscode --scope project
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
Add to `.vscode/mcp.json`:
|
|
281
|
-
|
|
282
|
-
```json
|
|
283
|
-
{
|
|
284
|
-
"servers": {
|
|
285
|
-
"crush-protocol": {
|
|
286
|
-
"type": "stdio",
|
|
287
|
-
"command": "npx",
|
|
288
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
63
|
+
npx -y @crush-protocol/mcp-client setup --cursor
|
|
292
64
|
```
|
|
293
65
|
|
|
294
|
-
</details>
|
|
295
|
-
|
|
296
|
-
### Windsurf
|
|
297
|
-
|
|
298
66
|
<details>
|
|
299
|
-
<summary>Show install
|
|
300
|
-
|
|
301
|
-
[Windsurf MCP docs](https://docs.windsurf.com/windsurf/cascade/mcp)
|
|
302
|
-
|
|
303
|
-
Recommended:
|
|
67
|
+
<summary>Show Cursor install details</summary>
|
|
304
68
|
|
|
305
69
|
```sh
|
|
306
|
-
npx -y @crush-protocol/mcp-client setup --
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
Manual config:
|
|
310
|
-
|
|
311
|
-
```json
|
|
312
|
-
{
|
|
313
|
-
"mcpServers": {
|
|
314
|
-
"crush-protocol": {
|
|
315
|
-
"command": "npx",
|
|
316
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
70
|
+
npx -y @crush-protocol/mcp-client setup --cursor
|
|
71
|
+
npx -y @crush-protocol/mcp-client login
|
|
320
72
|
```
|
|
321
73
|
|
|
322
74
|
</details>
|
|
323
75
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
<details>
|
|
327
|
-
<summary>Show install steps</summary>
|
|
328
|
-
|
|
329
|
-
[Claude Desktop MCP docs](https://modelcontextprotocol.io/quickstart/user)
|
|
330
|
-
|
|
331
|
-
Recommended:
|
|
332
|
-
|
|
333
|
-
```sh
|
|
334
|
-
npx -y @crush-protocol/mcp-client setup --claude-desktop
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
Manual config:
|
|
76
|
+
Manual MCP host config:
|
|
338
77
|
|
|
339
78
|
```json
|
|
340
79
|
{
|
|
@@ -347,209 +86,15 @@ Manual config:
|
|
|
347
86
|
}
|
|
348
87
|
```
|
|
349
88
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
### Warp
|
|
353
|
-
|
|
354
|
-
<details>
|
|
355
|
-
<summary>Show install steps</summary>
|
|
356
|
-
|
|
357
|
-
[Warp MCP docs](https://docs.warp.dev/knowledge-and-collaboration/mcp#adding-an-mcp-server)
|
|
358
|
-
|
|
359
|
-
Recommended:
|
|
360
|
-
|
|
361
|
-
```sh
|
|
362
|
-
npx -y @crush-protocol/mcp-client setup --warp
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
Add to Warp MCP config:
|
|
366
|
-
|
|
367
|
-
```json
|
|
368
|
-
{
|
|
369
|
-
"crush-protocol": {
|
|
370
|
-
"command": "npx",
|
|
371
|
-
"args": ["-y", "@crush-protocol/mcp-client"],
|
|
372
|
-
"env": {},
|
|
373
|
-
"working_directory": null,
|
|
374
|
-
"start_on_launch": true
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
</details>
|
|
380
|
-
|
|
381
|
-
### Zed
|
|
382
|
-
|
|
383
|
-
<details>
|
|
384
|
-
<summary>Show install steps</summary>
|
|
385
|
-
|
|
386
|
-
[Zed Context Server docs](https://zed.dev/docs/assistant/context-servers)
|
|
387
|
-
|
|
388
|
-
Add to `settings.json`:
|
|
389
|
-
|
|
390
|
-
```json
|
|
391
|
-
{
|
|
392
|
-
"context_servers": {
|
|
393
|
-
"crush-protocol": {
|
|
394
|
-
"source": "custom",
|
|
395
|
-
"command": "npx",
|
|
396
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
</details>
|
|
403
|
-
|
|
404
|
-
### Windows
|
|
405
|
-
|
|
406
|
-
<details>
|
|
407
|
-
<summary>Show install steps</summary>
|
|
408
|
-
|
|
409
|
-
If your host requires `cmd` wrapping on Windows:
|
|
410
|
-
|
|
411
|
-
```json
|
|
412
|
-
{
|
|
413
|
-
"mcpServers": {
|
|
414
|
-
"crush-protocol": {
|
|
415
|
-
"command": "cmd",
|
|
416
|
-
"args": ["/c", "npx", "-y", "@crush-protocol/mcp-client"]
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
</details>
|
|
423
|
-
|
|
424
|
-
### Bun And Deno
|
|
425
|
-
|
|
426
|
-
<details>
|
|
427
|
-
<summary>Show install steps</summary>
|
|
428
|
-
|
|
429
|
-
Use these only when your host runs MCP processes through Bun or Deno instead of Node.
|
|
430
|
-
|
|
431
|
-
```json
|
|
432
|
-
{
|
|
433
|
-
"mcpServers": {
|
|
434
|
-
"crush-protocol": {
|
|
435
|
-
"command": "bunx",
|
|
436
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
```json
|
|
443
|
-
{
|
|
444
|
-
"mcpServers": {
|
|
445
|
-
"crush-protocol": {
|
|
446
|
-
"command": "deno",
|
|
447
|
-
"args": [
|
|
448
|
-
"run",
|
|
449
|
-
"--allow-env",
|
|
450
|
-
"--allow-net",
|
|
451
|
-
"--allow-read",
|
|
452
|
-
"--allow-write",
|
|
453
|
-
"npm:@crush-protocol/mcp-client"
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
</details>
|
|
461
|
-
|
|
462
|
-
### Other Native Commands
|
|
463
|
-
|
|
464
|
-
<details>
|
|
465
|
-
<summary>Show install commands</summary>
|
|
466
|
-
|
|
467
|
-
```sh
|
|
468
|
-
# Amp
|
|
469
|
-
amp mcp add crush-protocol -- npx -y @crush-protocol/mcp-client
|
|
470
|
-
|
|
471
|
-
# Qwen Code
|
|
472
|
-
qwen mcp add crush-protocol npx -y @crush-protocol/mcp-client
|
|
473
|
-
```
|
|
474
|
-
|
|
475
|
-
</details>
|
|
476
|
-
|
|
477
|
-
### More Supported Hosts
|
|
478
|
-
|
|
479
|
-
Crush also works in additional MCP-capable clients. Use their native docs for the final config shape:
|
|
480
|
-
|
|
481
|
-
[](https://kiro.dev/docs/mcp/configuration/)
|
|
482
|
-
[](https://docs.roocode.com/features/mcp/using-mcp-in-roo)
|
|
483
|
-
[](https://cline.bot/mcp-marketplace)
|
|
484
|
-
[](https://docs.trae.ai/ide/model-context-protocol?_lang=en)
|
|
485
|
-
[](https://docs.augmentcode.com/)
|
|
486
|
-
[](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp)
|
|
487
|
-
[](https://docs.github.com/copilot)
|
|
488
|
-
[](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-configuration.html)
|
|
489
|
-
|
|
490
|
-
[](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html)
|
|
491
|
-
[](https://lmstudio.ai/blog/lmstudio-v0.3.17)
|
|
492
|
-
[](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022)
|
|
493
|
-
[](https://docs.boltai.com/docs/plugins/mcp-servers)
|
|
494
|
-
[](https://www.perplexity.ai/help-center/en/articles/11502712-local-and-remote-mcps-for-perplexity)
|
|
495
|
-
[](https://kilocode.ai)
|
|
496
|
-
[](https://zencoder.ai)
|
|
497
|
-
[](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps)
|
|
498
|
-
|
|
499
|
-
## What To Ask Crush
|
|
500
|
-
|
|
501
|
-
### Market Discovery
|
|
502
|
-
|
|
503
|
-
- `List the tokens available in Crush.`
|
|
504
|
-
- `Show me the indicators and timeframes available in Crush.`
|
|
505
|
-
- `Fetch OHLCV data for BTC.`
|
|
506
|
-
|
|
507
|
-
### Backtests
|
|
508
|
-
|
|
509
|
-
- `Create a simple moving-average crossover backtest.`
|
|
510
|
-
- `Validate this entry expression before backtesting it.`
|
|
511
|
-
- `List my recent backtests.`
|
|
512
|
-
|
|
513
|
-
### Strategies
|
|
514
|
-
|
|
515
|
-
- `Show my current live strategies.`
|
|
516
|
-
- `Get the logs for my latest strategy.`
|
|
517
|
-
- `Create a strategy from my best completed backtest.`
|
|
518
|
-
|
|
519
|
-
### Intelligence
|
|
520
|
-
|
|
521
|
-
- `Show me the latest alpha for SOL.`
|
|
522
|
-
- `Get token info for HYPE.`
|
|
523
|
-
- `What are the trending tokens today?`
|
|
524
|
-
|
|
525
|
-
## Authentication
|
|
526
|
-
|
|
527
|
-
Crush stores OAuth credentials in `~/.crush-mcp/` and reuses them across supported MCP hosts.
|
|
528
|
-
|
|
529
|
-
If tools appear in your AI host but calls fail with an auth error, run:
|
|
530
|
-
|
|
531
|
-
```sh
|
|
532
|
-
npx -y @crush-protocol/mcp-client login
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
After login, retry the same request in your MCP host. Token refresh is automatic when possible.
|
|
536
|
-
|
|
537
|
-
## Useful Commands
|
|
89
|
+
## Common Commands
|
|
538
90
|
|
|
539
91
|
```sh
|
|
540
|
-
# Setup and auth
|
|
541
92
|
npx -y @crush-protocol/mcp-client setup --all
|
|
542
93
|
npx -y @crush-protocol/mcp-client login
|
|
543
94
|
npx -y @crush-protocol/mcp-client auth:status
|
|
544
95
|
npx -y @crush-protocol/mcp-client doctor
|
|
545
|
-
|
|
546
|
-
# Connectivity and discovery
|
|
547
96
|
npx -y @crush-protocol/mcp-client ping
|
|
548
97
|
npx -y @crush-protocol/mcp-client tools:list
|
|
549
|
-
|
|
550
|
-
# Backtests
|
|
551
|
-
npx -y @crush-protocol/mcp-client backtest:schema
|
|
552
|
-
npx -y @crush-protocol/mcp-client backtest:list --limit 10
|
|
553
98
|
```
|
|
554
99
|
|
|
555
100
|
## Troubleshooting
|
|
@@ -560,20 +105,6 @@ npx -y @crush-protocol/mcp-client backtest:list --limit 10
|
|
|
560
105
|
| Tools appear but fail with auth errors | Run `npx -y @crush-protocol/mcp-client login` |
|
|
561
106
|
| Crush was working before but now fails | Run `npx -y @crush-protocol/mcp-client doctor` |
|
|
562
107
|
| You want to confirm local auth state | Run `npx -y @crush-protocol/mcp-client auth:status` |
|
|
563
|
-
| You want a fast connectivity check | Run `npx -y @crush-protocol/mcp-client doctor` |
|
|
564
|
-
| You want to verify end-to-end reachability | Run `npx -y @crush-protocol/mcp-client ping` |
|
|
565
|
-
|
|
566
|
-
## How It Works
|
|
567
|
-
|
|
568
|
-
```text
|
|
569
|
-
AI host -> @crush-protocol/mcp-client -> Crush hosted MCP
|
|
570
|
-
```
|
|
571
|
-
|
|
572
|
-
The npm package runs as a local stdio MCP process. It loads cached OAuth credentials, connects to the hosted Crush MCP over authenticated HTTP, and forwards tool calls to the server.
|
|
573
|
-
|
|
574
|
-
## GitHub Activity
|
|
575
|
-
|
|
576
|
-
[](https://star-history.com/#crush-protocol/crush-mcp-server&Date)
|
|
577
108
|
|
|
578
109
|
## License
|
|
579
110
|
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
2
|
+
"name": "@crush-protocol/mcp-client",
|
|
3
|
+
"version": "0.4.6",
|
|
4
|
+
"description": "Official Crush MCP client for hosted market data, backtests, and trading workflows",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/crush-protocol/crush-mcp-server/tree/main/packages/crush-mcp-client#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/crush-protocol/crush-mcp-server.git",
|
|
11
|
+
"directory": "packages/crush-mcp-client"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/crush-protocol/crush-mcp-server/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"crush",
|
|
18
|
+
"crush-protocol",
|
|
19
|
+
"mcp",
|
|
20
|
+
"model-context-protocol",
|
|
21
|
+
"trading",
|
|
22
|
+
"backtest",
|
|
23
|
+
"quant",
|
|
24
|
+
"cursor",
|
|
25
|
+
"claude-code",
|
|
26
|
+
"codex"
|
|
27
|
+
],
|
|
28
|
+
"main": "dist/index.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"bin": {
|
|
31
|
+
"crush-mcp-client": "dist/cli.js"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"INSTRUCTIONS.md"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"default": "./dist/index.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "rm -rf dist && tsc -p tsconfig.json",
|
|
48
|
+
"dev": "tsx src/cli.ts",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"test:e2e": "dotenv -e .env.e2e vitest run src/__tests__/e2e.test.ts",
|
|
51
|
+
"prepublishOnly": "pnpm run build"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@crush-protocol/mcp-contracts": "workspace:*",
|
|
55
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
56
|
+
"dotenv": "^17.2.1",
|
|
57
|
+
"zod": "^3.25.76"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/node": "^24.3.0",
|
|
61
|
+
"dotenv-cli": "^8.0.0",
|
|
62
|
+
"tsx": "^4.20.4",
|
|
63
|
+
"typescript": "^5.9.2",
|
|
64
|
+
"vitest": "^3.2.4"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=20"
|
|
68
|
+
}
|
|
69
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Edwin Hernandez
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|