@crush-protocol/mcp-client 0.4.3 → 0.4.5
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/INSTRUCTIONS.md +16 -0
- package/README.md +46 -659
- package/dist/cli.js +6 -0
- package/dist/mcp/authPreflight.d.ts +9 -0
- package/dist/mcp/authPreflight.js +26 -0
- package/dist/mcp/oauthProvider.d.ts +2 -0
- package/dist/mcp/oauthProvider.js +8 -1
- package/dist/mcp/oauthRemoteClient.d.ts +3 -0
- package/dist/mcp/oauthRemoteClient.js +31 -18
- package/dist/mcp/proxy.js +29 -114
- package/dist/onboarding/cliOutput.d.ts +2 -0
- package/dist/onboarding/cliOutput.js +15 -0
- package/package.json +68 -46
- package/LICENSE +0 -21
- package/dist/__tests__/cliOutput.test.d.ts +0 -1
- package/dist/__tests__/cliOutput.test.js +0 -34
- package/dist/__tests__/e2e.test.d.ts +0 -1
- package/dist/__tests__/e2e.test.js +0 -50
- package/dist/__tests__/oauthProvider.test.d.ts +0 -1
- package/dist/__tests__/oauthProvider.test.js +0 -45
- package/dist/__tests__/oauthStorage.test.d.ts +0 -1
- package/dist/__tests__/oauthStorage.test.js +0 -52
package/README.md
CHANGED
|
@@ -1,587 +1,69 @@
|
|
|
1
1
|
# Crush Protocol MCP Client
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@crush-protocol/mcp-client)
|
|
4
|
-
[](
|
|
4
|
+
[](https://github.com/crush-protocol/crush-mcp-server/blob/main/LICENSE)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Official MCP client for connecting Cursor, Claude Code, Codex, Gemini CLI, Windsurf, VS Code, and other MCP hosts to Crush.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## For AI Agents
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Use this flow for the first successful Crush session:
|
|
13
|
-
|
|
14
|
-
```sh
|
|
15
|
-
npx -y @crush-protocol/mcp-client setup --cursor
|
|
16
|
-
npx -y @crush-protocol/mcp-client login
|
|
17
|
-
npx -y @crush-protocol/mcp-client ping
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
What these commands do:
|
|
21
|
-
|
|
22
|
-
1. `setup` writes MCP config for your host.
|
|
23
|
-
2. `login` opens the browser once and stores OAuth credentials locally.
|
|
24
|
-
3. `ping` confirms that your local credentials can reach the hosted Crush MCP.
|
|
25
|
-
|
|
26
|
-
The official hosted MCP URL is built in. Users do not need to add it manually to host configs.
|
|
27
|
-
|
|
28
|
-
To configure every supported host at once, run `npx -y @crush-protocol/mcp-client setup --all`.
|
|
10
|
+
Package name: `@crush-protocol/mcp-client`
|
|
29
11
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Crush tools are grouped around four common workflows:
|
|
33
|
-
|
|
34
|
-
- Market data: `list_tokens`, `list_indicators`, `list_timeframes`, `fetch_ohlcv`, `fetch_indicator`
|
|
35
|
-
- Backtests: `get_backtest_config_schema`, `get_available_tokens`, `validate_expression`, `create_backtest`, `list_backtests`
|
|
36
|
-
- Live strategies: `create_strategy`, `list_strategies`, `get_strategy`, `update_strategy`, `toggle_strategy`, `get_strategy_logs`
|
|
37
|
-
- Market intelligence: `search_tokens`, `get_token_info`, `get_trending_tokens`, `get_alpha_feed`, `get_token_feed`, `fetch_news`
|
|
38
|
-
|
|
39
|
-
Detailed tool guidance is in [INSTRUCTIONS.md](./INSTRUCTIONS.md).
|
|
40
|
-
|
|
41
|
-
## First Things To Ask
|
|
42
|
-
|
|
43
|
-
These prompts work well for both users and MCP hosts:
|
|
44
|
-
|
|
45
|
-
- `List the tokens available in Crush.`
|
|
46
|
-
- `Show me the indicators and timeframes available in Crush.`
|
|
47
|
-
- `Fetch OHLCV data for BTC.`
|
|
48
|
-
- `Create a simple moving-average crossover backtest.`
|
|
49
|
-
- `List my recent backtests.`
|
|
50
|
-
- `Show my current live strategies.`
|
|
12
|
+
Treat these names as the same product:
|
|
51
13
|
|
|
52
|
-
|
|
14
|
+
- `Crush`
|
|
15
|
+
- `Crush MCP`
|
|
16
|
+
- `Crush Protocol MCP`
|
|
17
|
+
- `@crush-protocol/mcp-client`
|
|
53
18
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
If tools appear in your AI host but return an auth error, run:
|
|
19
|
+
Recommended flow:
|
|
57
20
|
|
|
58
21
|
```sh
|
|
22
|
+
npx -y @crush-protocol/mcp-client setup --cursor
|
|
59
23
|
npx -y @crush-protocol/mcp-client login
|
|
60
24
|
```
|
|
61
25
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## How It Works
|
|
65
|
-
|
|
66
|
-
The CLI acts as a stdio-to-HTTP bridge:
|
|
67
|
-
|
|
68
|
-
```text
|
|
69
|
-
AI host -> @crush-protocol/mcp-client -> Crush MCP server
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Your AI host launches `@crush-protocol/mcp-client` over stdio. The client loads cached OAuth credentials from `~/.crush-mcp/`, connects to the hosted Crush MCP, and forwards all tool requests over authenticated HTTP.
|
|
73
|
-
|
|
74
|
-
## Client Configuration
|
|
75
|
-
|
|
76
|
-
<details>
|
|
77
|
-
<summary><strong>Cursor</strong></summary>
|
|
78
|
-
|
|
79
|
-
[](https://cursor.com/install-mcp?name=crush-protocol&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjcnVzaC1wcm90b2NvbC9tY3AtY2xpZW50Il19)
|
|
80
|
-
|
|
81
|
-
[Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol) · Go to: `Settings` → `Cursor Settings` → `MCP` → `Add new global MCP server`
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
```json
|
|
85
|
-
{
|
|
86
|
-
"mcpServers": {
|
|
87
|
-
"crush-protocol": {
|
|
88
|
-
"command": "npx",
|
|
89
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</details>
|
|
97
|
-
|
|
98
|
-
<details>
|
|
99
|
-
<summary><strong>Claude Code</strong></summary>
|
|
100
|
-
|
|
101
|
-
[Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp)
|
|
102
|
-
|
|
26
|
+
If Crush was already installed but is not working:
|
|
103
27
|
|
|
104
28
|
```sh
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</details>
|
|
110
|
-
|
|
111
|
-
<details>
|
|
112
|
-
<summary><strong>OpenCode</strong></summary>
|
|
113
|
-
|
|
114
|
-
[OpenCode MCP docs](https://opencode.ai/docs/mcp-servers) · Add to `~/.config/opencode/opencode.json`
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
```json
|
|
118
|
-
{
|
|
119
|
-
"$schema": "https://opencode.ai/config.json",
|
|
120
|
-
"mcp": {
|
|
121
|
-
"crush-protocol": {
|
|
122
|
-
"type": "local",
|
|
123
|
-
"command": ["npx", "-y", "@crush-protocol/mcp-client"],
|
|
124
|
-
"enabled": true
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</details>
|
|
132
|
-
|
|
133
|
-
<details>
|
|
134
|
-
<summary><strong>OpenAI Codex</strong></summary>
|
|
135
|
-
|
|
136
|
-
[OpenAI Codex MCP docs](https://developers.openai.com/codex/mcp)
|
|
137
|
-
|
|
138
|
-
**CLI:** `codex mcp add crush-protocol -- npx -y @crush-protocol/mcp-client`
|
|
139
|
-
|
|
140
|
-
**Local** (add to `~/.codex/config.toml`):
|
|
141
|
-
|
|
142
|
-
```toml
|
|
143
|
-
[mcp_servers.crush-protocol]
|
|
144
|
-
command = "npx"
|
|
145
|
-
args = ["-y", "@crush-protocol/mcp-client"]
|
|
146
|
-
startup_timeout_ms = 20000
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</details>
|
|
151
|
-
|
|
152
|
-
<details>
|
|
153
|
-
<summary><strong>Google Gemini CLI</strong></summary>
|
|
154
|
-
|
|
155
|
-
[Gemini CLI Configuration](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html) · Add to `~/.gemini/settings.json`
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
```json
|
|
159
|
-
{
|
|
160
|
-
"mcpServers": {
|
|
161
|
-
"crush-protocol": {
|
|
162
|
-
"command": "npx",
|
|
163
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
</details>
|
|
170
|
-
|
|
171
|
-
<details>
|
|
172
|
-
<summary><strong>VS Code</strong></summary>
|
|
173
|
-
|
|
174
|
-
[VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) · Add to `.vscode/mcp.json`
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
```json
|
|
178
|
-
{
|
|
179
|
-
"servers": {
|
|
180
|
-
"crush-protocol": {
|
|
181
|
-
"type": "stdio",
|
|
182
|
-
"command": "npx",
|
|
183
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
</details>
|
|
190
|
-
|
|
191
|
-
<details>
|
|
192
|
-
<summary><strong>Windsurf</strong></summary>
|
|
193
|
-
|
|
194
|
-
[Windsurf MCP docs](https://docs.windsurf.com/windsurf/cascade/mcp)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
```json
|
|
198
|
-
{
|
|
199
|
-
"mcpServers": {
|
|
200
|
-
"crush-protocol": {
|
|
201
|
-
"command": "npx",
|
|
202
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
</details>
|
|
209
|
-
|
|
210
|
-
<details>
|
|
211
|
-
<summary><strong>Claude Desktop</strong></summary>
|
|
212
|
-
|
|
213
|
-
[Claude Desktop MCP docs](https://modelcontextprotocol.io/quickstart/user) · Edit `claude_desktop_config.json`
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
```json
|
|
217
|
-
{
|
|
218
|
-
"mcpServers": {
|
|
219
|
-
"crush-protocol": {
|
|
220
|
-
"command": "npx",
|
|
221
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
</details>
|
|
228
|
-
|
|
229
|
-
<details>
|
|
230
|
-
<summary><strong>Kiro</strong></summary>
|
|
231
|
-
|
|
232
|
-
[Kiro MCP docs](https://kiro.dev/docs/mcp/configuration/) · Navigate `Kiro` → `MCP Servers` → `+ Add`
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
```json
|
|
236
|
-
{
|
|
237
|
-
"mcpServers": {
|
|
238
|
-
"crush-protocol": {
|
|
239
|
-
"command": "npx",
|
|
240
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
</details>
|
|
247
|
-
|
|
248
|
-
<details>
|
|
249
|
-
<summary><strong>Roo Code</strong></summary>
|
|
250
|
-
|
|
251
|
-
[Roo Code MCP docs](https://docs.roocode.com/features/mcp/using-mcp-in-roo)
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
```json
|
|
255
|
-
{
|
|
256
|
-
"mcpServers": {
|
|
257
|
-
"crush-protocol": {
|
|
258
|
-
"command": "npx",
|
|
259
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
</details>
|
|
266
|
-
|
|
267
|
-
<details>
|
|
268
|
-
<summary><strong>Cline</strong></summary>
|
|
269
|
-
|
|
270
|
-
[Cline MCP Marketplace](https://cline.bot/mcp-marketplace)
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
```json
|
|
274
|
-
{
|
|
275
|
-
"mcpServers": {
|
|
276
|
-
"crush-protocol": {
|
|
277
|
-
"command": "npx",
|
|
278
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
</details>
|
|
285
|
-
|
|
286
|
-
<details>
|
|
287
|
-
<summary><strong>Trae</strong></summary>
|
|
288
|
-
|
|
289
|
-
[Trae MCP docs](https://docs.trae.ai/ide/model-context-protocol?_lang=en)
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
```json
|
|
293
|
-
{
|
|
294
|
-
"mcpServers": {
|
|
295
|
-
"crush-protocol": {
|
|
296
|
-
"command": "npx",
|
|
297
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
</details>
|
|
304
|
-
|
|
305
|
-
<details>
|
|
306
|
-
<summary><strong>Augment Code</strong></summary>
|
|
307
|
-
|
|
308
|
-
1. Click hamburger menu → Settings → Tools → `+ Add MCP`
|
|
309
|
-
2. Enter command: `npx -y @crush-protocol/mcp-client`
|
|
310
|
-
3. Name: `crush-protocol` → Click Add
|
|
311
|
-
|
|
312
|
-
Manual config in VS Code settings:
|
|
313
|
-
|
|
314
|
-
```json
|
|
315
|
-
"augment.advanced": {
|
|
316
|
-
"mcpServers": [
|
|
317
|
-
{
|
|
318
|
-
"name": "crush-protocol",
|
|
319
|
-
"command": "npx",
|
|
320
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
321
|
-
}
|
|
322
|
-
]
|
|
323
|
-
}
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
</details>
|
|
327
|
-
|
|
328
|
-
<details>
|
|
329
|
-
<summary><strong>Copilot Coding Agent</strong></summary>
|
|
330
|
-
|
|
331
|
-
[GitHub Copilot MCP docs](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
```json
|
|
335
|
-
{
|
|
336
|
-
"mcpServers": {
|
|
337
|
-
"crush-protocol": {
|
|
338
|
-
"type": "local",
|
|
339
|
-
"command": "npx",
|
|
340
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
</details>
|
|
347
|
-
|
|
348
|
-
<details>
|
|
349
|
-
<summary><strong>Copilot CLI</strong></summary>
|
|
350
|
-
|
|
351
|
-
Add to `~/.copilot/mcp-config.json`:
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
```json
|
|
355
|
-
{
|
|
356
|
-
"mcpServers": {
|
|
357
|
-
"crush-protocol": {
|
|
358
|
-
"type": "local",
|
|
359
|
-
"command": "npx",
|
|
360
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
</details>
|
|
367
|
-
|
|
368
|
-
<details>
|
|
369
|
-
<summary><strong>Amazon Q Developer CLI</strong></summary>
|
|
370
|
-
|
|
371
|
-
[Amazon Q Developer CLI docs](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-configuration.html)
|
|
372
|
-
|
|
373
|
-
```json
|
|
374
|
-
{
|
|
375
|
-
"mcpServers": {
|
|
376
|
-
"crush-protocol": {
|
|
377
|
-
"command": "npx",
|
|
378
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
</details>
|
|
385
|
-
|
|
386
|
-
<details>
|
|
387
|
-
<summary><strong>Warp</strong></summary>
|
|
388
|
-
|
|
389
|
-
[Warp MCP docs](https://docs.warp.dev/knowledge-and-collaboration/mcp#adding-an-mcp-server) · Navigate `Settings` → `AI` → `Manage MCP servers` → `+ Add`
|
|
390
|
-
|
|
391
|
-
```json
|
|
392
|
-
{
|
|
393
|
-
"crush-protocol": {
|
|
394
|
-
"command": "npx",
|
|
395
|
-
"args": ["-y", "@crush-protocol/mcp-client"],
|
|
396
|
-
"env": {},
|
|
397
|
-
"working_directory": null,
|
|
398
|
-
"start_on_launch": true
|
|
399
|
-
}
|
|
400
|
-
}
|
|
29
|
+
npx -y @crush-protocol/mcp-client auth:status
|
|
30
|
+
npx -y @crush-protocol/mcp-client doctor
|
|
401
31
|
```
|
|
402
32
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
<details>
|
|
406
|
-
<summary><strong>Amp</strong></summary>
|
|
407
|
-
|
|
408
|
-
[Amp MCP docs](https://ampcode.com/manual#mcp)
|
|
33
|
+
## Quick Start
|
|
409
34
|
|
|
410
35
|
```sh
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
</details>
|
|
415
|
-
|
|
416
|
-
<details>
|
|
417
|
-
<summary><strong>Zed</strong></summary>
|
|
418
|
-
|
|
419
|
-
[Zed Context Server docs](https://zed.dev/docs/assistant/context-servers) · Add to `settings.json`
|
|
420
|
-
|
|
421
|
-
```json
|
|
422
|
-
{
|
|
423
|
-
"context_servers": {
|
|
424
|
-
"crush-protocol": {
|
|
425
|
-
"source": "custom",
|
|
426
|
-
"command": "npx",
|
|
427
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
</details>
|
|
434
|
-
|
|
435
|
-
<details>
|
|
436
|
-
<summary><strong>JetBrains AI Assistant</strong></summary>
|
|
437
|
-
|
|
438
|
-
[JetBrains AI Assistant docs](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html) · Go to `Settings` → `Tools` → `AI Assistant` → `Model Context Protocol (MCP)` → `+ Add`
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
```json
|
|
442
|
-
{
|
|
443
|
-
"mcpServers": {
|
|
444
|
-
"crush-protocol": {
|
|
445
|
-
"command": "npx",
|
|
446
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
```
|
|
451
|
-
|
|
452
|
-
</details>
|
|
453
|
-
|
|
454
|
-
<details>
|
|
455
|
-
<summary><strong>Qwen Code</strong></summary>
|
|
456
|
-
|
|
457
|
-
[Qwen Code MCP docs](https://qwenlm.github.io/qwen-code-docs/en/users/features/mcp/)
|
|
458
|
-
|
|
459
|
-
**CLI:** `qwen mcp add crush-protocol npx -y @crush-protocol/mcp-client`
|
|
460
|
-
|
|
461
|
-
```json
|
|
462
|
-
{
|
|
463
|
-
"mcpServers": {
|
|
464
|
-
"crush-protocol": {
|
|
465
|
-
"command": "npx",
|
|
466
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
</details>
|
|
473
|
-
|
|
474
|
-
<details>
|
|
475
|
-
<summary><strong>LM Studio</strong></summary>
|
|
476
|
-
|
|
477
|
-
[LM Studio MCP Support](https://lmstudio.ai/blog/lmstudio-v0.3.17) · Navigate `Program` → `Install` → `Edit mcp.json`
|
|
478
|
-
|
|
479
|
-
```json
|
|
480
|
-
{
|
|
481
|
-
"mcpServers": {
|
|
482
|
-
"crush-protocol": {
|
|
483
|
-
"command": "npx",
|
|
484
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
```
|
|
489
|
-
|
|
490
|
-
</details>
|
|
491
|
-
|
|
492
|
-
<details>
|
|
493
|
-
<summary><strong>Visual Studio 2022</strong></summary>
|
|
494
|
-
|
|
495
|
-
[Visual Studio MCP docs](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022)
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
```json
|
|
499
|
-
{
|
|
500
|
-
"mcp": {
|
|
501
|
-
"servers": {
|
|
502
|
-
"crush-protocol": {
|
|
503
|
-
"type": "stdio",
|
|
504
|
-
"command": "npx",
|
|
505
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
```
|
|
511
|
-
|
|
512
|
-
</details>
|
|
513
|
-
|
|
514
|
-
<details>
|
|
515
|
-
<summary><strong>BoltAI</strong></summary>
|
|
516
|
-
|
|
517
|
-
[BoltAI docs](https://docs.boltai.com/docs/plugins/mcp-servers)
|
|
518
|
-
|
|
519
|
-
```json
|
|
520
|
-
{
|
|
521
|
-
"mcpServers": {
|
|
522
|
-
"crush-protocol": {
|
|
523
|
-
"command": "npx",
|
|
524
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
```
|
|
529
|
-
|
|
530
|
-
</details>
|
|
531
|
-
|
|
532
|
-
<details>
|
|
533
|
-
<summary><strong>Perplexity Desktop</strong></summary>
|
|
534
|
-
|
|
535
|
-
[Perplexity MCP docs](https://www.perplexity.ai/help-center/en/articles/11502712-local-and-remote-mcps-for-perplexity) · Navigate `Perplexity` → `Settings` → `Connectors` → `Add Connector` → `Advanced` · Server Name: `crush-protocol`
|
|
536
|
-
|
|
537
|
-
```json
|
|
538
|
-
{
|
|
539
|
-
"args": ["-y", "@crush-protocol/mcp-client"],
|
|
540
|
-
"command": "npx",
|
|
541
|
-
"env": {}
|
|
542
|
-
}
|
|
36
|
+
npx -y @crush-protocol/mcp-client setup --cursor
|
|
37
|
+
npx -y @crush-protocol/mcp-client login
|
|
38
|
+
npx -y @crush-protocol/mcp-client ping
|
|
543
39
|
```
|
|
544
40
|
|
|
545
|
-
|
|
41
|
+
1. `setup` writes MCP config for your host.
|
|
42
|
+
2. `login` opens the browser once and stores OAuth credentials locally.
|
|
43
|
+
3. `ping` confirms this machine can reach the hosted Crush MCP.
|
|
546
44
|
|
|
547
|
-
|
|
548
|
-
<summary><strong>Kilo Code</strong></summary>
|
|
45
|
+
The official hosted Crush MCP URL is built in. End users do not need to paste a server URL.
|
|
549
46
|
|
|
550
|
-
|
|
47
|
+
## What You Can Do
|
|
551
48
|
|
|
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
|
|
552
53
|
|
|
553
|
-
|
|
554
|
-
{
|
|
555
|
-
"mcpServers": {
|
|
556
|
-
"crush-protocol": {
|
|
557
|
-
"command": "npx",
|
|
558
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
```
|
|
54
|
+
Detailed tool guidance:
|
|
563
55
|
|
|
564
|
-
|
|
56
|
+
- [INSTRUCTIONS.md](https://github.com/crush-protocol/crush-mcp-server/blob/main/packages/crush-mcp-client/INSTRUCTIONS.md)
|
|
565
57
|
|
|
566
|
-
|
|
567
|
-
<summary><strong>Zencoder</strong></summary>
|
|
58
|
+
## Install
|
|
568
59
|
|
|
569
|
-
|
|
60
|
+
Recommended:
|
|
570
61
|
|
|
571
|
-
```
|
|
572
|
-
|
|
573
|
-
"command": "npx",
|
|
574
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
575
|
-
}
|
|
62
|
+
```sh
|
|
63
|
+
npx -y @crush-protocol/mcp-client setup --cursor
|
|
576
64
|
```
|
|
577
65
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
<details>
|
|
581
|
-
<summary><strong>Qodo Gen</strong></summary>
|
|
582
|
-
|
|
583
|
-
[Qodo Gen docs](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps) · Open Qodo Gen chat → Connect more tools → `+ Add new MCP`
|
|
584
|
-
|
|
66
|
+
Manual MCP host config:
|
|
585
67
|
|
|
586
68
|
```json
|
|
587
69
|
{
|
|
@@ -594,121 +76,26 @@ Go to Zencoder menu → Agent tools → Add custom MCP, paste:
|
|
|
594
76
|
}
|
|
595
77
|
```
|
|
596
78
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
<details>
|
|
600
|
-
<summary><strong>Using Bun or Deno</strong></summary>
|
|
601
|
-
|
|
602
|
-
**Bun:**
|
|
603
|
-
|
|
604
|
-
```json
|
|
605
|
-
{
|
|
606
|
-
"mcpServers": {
|
|
607
|
-
"crush-protocol": {
|
|
608
|
-
"command": "bunx",
|
|
609
|
-
"args": ["-y", "@crush-protocol/mcp-client"]
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
```
|
|
614
|
-
|
|
615
|
-
**Deno:**
|
|
616
|
-
|
|
617
|
-
```json
|
|
618
|
-
{
|
|
619
|
-
"mcpServers": {
|
|
620
|
-
"crush-protocol": {
|
|
621
|
-
"command": "deno",
|
|
622
|
-
"args": [
|
|
623
|
-
"run",
|
|
624
|
-
"--allow-env",
|
|
625
|
-
"--allow-net",
|
|
626
|
-
"--allow-read",
|
|
627
|
-
"--allow-write",
|
|
628
|
-
"npm:@crush-protocol/mcp-client"
|
|
629
|
-
]
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
```
|
|
634
|
-
|
|
635
|
-
</details>
|
|
636
|
-
|
|
637
|
-
<details>
|
|
638
|
-
<summary><strong>Windows</strong></summary>
|
|
639
|
-
|
|
640
|
-
Use `cmd` as the command wrapper:
|
|
641
|
-
|
|
642
|
-
```json
|
|
643
|
-
{
|
|
644
|
-
"mcpServers": {
|
|
645
|
-
"crush-protocol": {
|
|
646
|
-
"command": "cmd",
|
|
647
|
-
"args": ["/c", "npx", "-y", "@crush-protocol/mcp-client"]
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
```
|
|
652
|
-
|
|
653
|
-
</details>
|
|
654
|
-
|
|
655
|
-
## CLI Usage
|
|
656
|
-
|
|
657
|
-
```sh
|
|
658
|
-
# Auth
|
|
659
|
-
npx -y @crush-protocol/mcp-client login # OAuth login (browser)
|
|
660
|
-
npx -y @crush-protocol/mcp-client auth:status # Show local Crush auth state
|
|
661
|
-
npx -y @crush-protocol/mcp-client doctor # Check auth state and connectivity
|
|
662
|
-
npx -y @crush-protocol/mcp-client setup --all # Auto-write config for all supported hosts
|
|
663
|
-
|
|
664
|
-
# Tools
|
|
665
|
-
npx -y @crush-protocol/mcp-client tools:list # List available tools
|
|
666
|
-
npx -y @crush-protocol/mcp-client ping # Test connectivity
|
|
667
|
-
|
|
668
|
-
# Backtest
|
|
669
|
-
npx -y @crush-protocol/mcp-client backtest:schema # Backtest config schema
|
|
670
|
-
npx -y @crush-protocol/mcp-client backtest:list --limit 10
|
|
671
|
-
```
|
|
672
|
-
|
|
673
|
-
## Troubleshooting
|
|
674
|
-
|
|
675
|
-
### Tools appear, but calls fail with auth errors
|
|
676
|
-
|
|
677
|
-
Run:
|
|
79
|
+
## Common Commands
|
|
678
80
|
|
|
679
81
|
```sh
|
|
82
|
+
npx -y @crush-protocol/mcp-client setup --all
|
|
680
83
|
npx -y @crush-protocol/mcp-client login
|
|
681
|
-
```
|
|
682
|
-
|
|
683
|
-
Then retry the same request in your AI host.
|
|
684
|
-
|
|
685
|
-
### I installed Crush but do not see tools yet
|
|
686
|
-
|
|
687
|
-
Restart your AI host session after `setup`.
|
|
688
|
-
|
|
689
|
-
### I want to confirm whether this machine is logged in
|
|
690
|
-
|
|
691
|
-
Run:
|
|
692
|
-
|
|
693
|
-
```sh
|
|
694
84
|
npx -y @crush-protocol/mcp-client auth:status
|
|
695
|
-
```
|
|
696
|
-
|
|
697
|
-
### I want a quick connectivity check
|
|
698
|
-
|
|
699
|
-
Run:
|
|
700
|
-
|
|
701
|
-
```sh
|
|
702
85
|
npx -y @crush-protocol/mcp-client doctor
|
|
86
|
+
npx -y @crush-protocol/mcp-client ping
|
|
87
|
+
npx -y @crush-protocol/mcp-client tools:list
|
|
703
88
|
```
|
|
704
89
|
|
|
705
|
-
|
|
90
|
+
## Troubleshooting
|
|
706
91
|
|
|
707
|
-
|
|
|
708
|
-
|
|
709
|
-
|
|
|
710
|
-
|
|
|
92
|
+
| Problem | What to do |
|
|
93
|
+
| --- | --- |
|
|
94
|
+
| Tools do not appear after install | Restart the MCP host after `setup` |
|
|
95
|
+
| Tools appear but fail with auth errors | Run `npx -y @crush-protocol/mcp-client login` |
|
|
96
|
+
| Crush was working before but now fails | Run `npx -y @crush-protocol/mcp-client doctor` |
|
|
97
|
+
| You want to confirm local auth state | Run `npx -y @crush-protocol/mcp-client auth:status` |
|
|
711
98
|
|
|
712
99
|
## License
|
|
713
100
|
|
|
714
|
-
MIT
|
|
101
|
+
Licensed under the [MIT License](https://github.com/crush-protocol/crush-mcp-server/blob/main/LICENSE).
|