@dreamcash-org/mcp 0.3.7 → 0.3.9
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 +59 -28
- package/dist/THIRD_PARTY_LICENSES.md +2 -2
- package/dist/dreamcash-mcp.js +1544 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
# Dreamcash MCP
|
|
2
2
|
|
|
3
|
-
Let your
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
account and markets, and trade: **each trade approved by you in
|
|
7
|
-
app, or, if you let it, on its own within limits you set.**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
Let your AI work with your [Dreamcash](https://dreamcash.xyz) account.
|
|
4
|
+
Dreamcash is a trading app on Hyperliquid; its MCP lets an AI app or agent
|
|
5
|
+
(Claude, ChatGPT, Grok, Gemini, Claude Code, Codex, Hermes, OpenClaw, Cursor)
|
|
6
|
+
read your account and markets, and trade: **each trade approved by you in
|
|
7
|
+
the Dreamcash app, or, if you let it, on its own within limits you set.**
|
|
8
|
+
|
|
9
|
+
## Start with the connector
|
|
10
|
+
|
|
11
|
+
Add the Dreamcash connector to your AI app, as a custom connector (a remote
|
|
12
|
+
MCP server):
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
https://api.dreamcash.xyz/mcp
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
When it asks you to sign in, enter the 6-character code the Dreamcash app
|
|
19
|
+
shows under **Settings › Connected AI**. Your AI can then read your account
|
|
20
|
+
and markets and ask for trades, each one approved by you in the app. You need
|
|
21
|
+
a Dreamcash account, made in the Dreamcash app for
|
|
22
|
+
[iPhone](https://apps.apple.com/app/id6748916424) or
|
|
23
|
+
[Android](https://play.google.com/store/apps/details?id=xyz.dreamcash.app).
|
|
24
|
+
|
|
25
|
+
## Trading on its own
|
|
26
|
+
|
|
27
|
+
This package is how an agent trades on its own. You don't install it
|
|
28
|
+
yourself: once the connector is added, ask your agent to trade on its own.
|
|
29
|
+
If it can run commands on a computer of its own (Grok Bot, Claude Code,
|
|
30
|
+
Codex, Hermes, OpenClaw), the connector hands it a one-time code, and it
|
|
31
|
+
starts this package (`npx -y @dreamcash-org/mcp@latest`) and pairs it with
|
|
32
|
+
that code. There is nothing for you to type.
|
|
33
|
+
|
|
34
|
+
Then open the Dreamcash app: the new connection says which of your
|
|
35
|
+
connections set it up. Pick its limits (they start at $50 per order, 3x
|
|
36
|
+
leverage and $250 a day, or at the budget and leverage you gave your agent)
|
|
37
|
+
and how many days its key lasts, and approve its key with your main wallet.
|
|
38
|
+
Until you do, each trade still waits for you.
|
|
14
39
|
|
|
15
40
|
## What your agent can do
|
|
16
41
|
|
|
@@ -36,22 +61,21 @@ Try asking it:
|
|
|
36
61
|
- "Buy $50 of HYPE at 3x with a stop loss 5% below."
|
|
37
62
|
- "Close everything I have open on BTC."
|
|
38
63
|
|
|
39
|
-
##
|
|
64
|
+
## Adding the package yourself
|
|
40
65
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
[Android](https://play.google.com/store/apps/details?id=xyz.dreamcash.app)).
|
|
66
|
+
For an agent that doesn't use the connector, or to set it up by hand. You
|
|
67
|
+
need Node.js 20 or newer.
|
|
44
68
|
|
|
45
69
|
Add a local (stdio) MCP server that runs:
|
|
46
70
|
|
|
47
71
|
```sh
|
|
48
|
-
npx -y @dreamcash-org/mcp
|
|
72
|
+
npx -y @dreamcash-org/mcp@latest
|
|
49
73
|
```
|
|
50
74
|
|
|
51
75
|
**Claude Code**
|
|
52
76
|
|
|
53
77
|
```sh
|
|
54
|
-
claude mcp add dreamcash -- npx -y @dreamcash-org/mcp
|
|
78
|
+
claude mcp add dreamcash -- npx -y @dreamcash-org/mcp@latest
|
|
55
79
|
```
|
|
56
80
|
|
|
57
81
|
**Claude Desktop, Cursor and other clients configured with JSON**
|
|
@@ -61,7 +85,7 @@ claude mcp add dreamcash -- npx -y @dreamcash-org/mcp
|
|
|
61
85
|
"mcpServers": {
|
|
62
86
|
"dreamcash": {
|
|
63
87
|
"command": "npx",
|
|
64
|
-
"args": ["-y", "@dreamcash-org/mcp"]
|
|
88
|
+
"args": ["-y", "@dreamcash-org/mcp@latest"]
|
|
65
89
|
}
|
|
66
90
|
}
|
|
67
91
|
}
|
|
@@ -72,29 +96,31 @@ claude mcp add dreamcash -- npx -y @dreamcash-org/mcp
|
|
|
72
96
|
```toml
|
|
73
97
|
[mcp_servers.dreamcash]
|
|
74
98
|
command = "npx"
|
|
75
|
-
args = ["-y", "@dreamcash-org/mcp"]
|
|
99
|
+
args = ["-y", "@dreamcash-org/mcp@latest"]
|
|
76
100
|
```
|
|
77
101
|
|
|
78
102
|
**Gemini for Mac**: Customize › Connectors › Add custom app › Local MCP, with
|
|
79
|
-
the command `npx -y @dreamcash-org/mcp`.
|
|
103
|
+
the command `npx -y @dreamcash-org/mcp@latest`.
|
|
80
104
|
|
|
81
|
-
**Agents that set up their own tools** (Grok Bot, Hermes, OpenClaw):
|
|
82
|
-
the
|
|
105
|
+
**Agents that set up their own tools** (Grok Bot, Hermes, OpenClaw): with
|
|
106
|
+
the connector added, they do it themselves when you ask them to trade on
|
|
107
|
+
their own. Without it, ask the agent to add a local MCP server that runs
|
|
108
|
+
`npx -y @dreamcash-org/mcp@latest`.
|
|
83
109
|
|
|
84
110
|
Desktop apps often start servers without your terminal's `PATH`: if `npx`
|
|
85
111
|
isn't found, use its full path, which `which npx` prints in your terminal
|
|
86
112
|
(e.g. `/opt/homebrew/bin/npx`).
|
|
87
113
|
|
|
88
|
-
## Connect your account
|
|
114
|
+
## Connect the package to your account
|
|
115
|
+
|
|
116
|
+
An agent the connector set up is connected already. Otherwise:
|
|
89
117
|
|
|
90
118
|
1. In the Dreamcash app, open **Settings › Connected AI**. It shows a
|
|
91
119
|
6-character code, valid for 10 minutes.
|
|
92
120
|
2. Tell your agent to connect to Dreamcash with that code. It's connected
|
|
93
121
|
at once, and the app lists it under Connected AI.
|
|
94
|
-
3. To let it trade on its own, open it in Connected AI
|
|
95
|
-
|
|
96
|
-
leverage you gave your agent) and how many days its key lasts, and approve
|
|
97
|
-
its key with your main wallet.
|
|
122
|
+
3. To let it trade on its own, open it in Connected AI and approve its key
|
|
123
|
+
with your main wallet, as above.
|
|
98
124
|
|
|
99
125
|
Or, without a code: ask your agent to connect to Dreamcash. It answers with an
|
|
100
126
|
approval link (or your agent app opens it for you). Open it on the phone with
|
|
@@ -166,6 +192,11 @@ error to retry.
|
|
|
166
192
|
to your account, and anyone can send you an approval link: approve one only
|
|
167
193
|
right after you asked your agent to connect. The app tells you each time an
|
|
168
194
|
AI connects.
|
|
195
|
+
- **An agent your connector set up says so in the app** ("set up by your
|
|
196
|
+
Grok connection"). The code the connector hands it pairs once, within 10
|
|
197
|
+
minutes, and gives the package no more than the connector has: it asks
|
|
198
|
+
you for each trade. Approve trading on its own only for an agent you asked
|
|
199
|
+
to trade on its own.
|
|
169
200
|
- **What the agent sees**: the balances, positions and history of every
|
|
170
201
|
wallet in your Dreamcash account.
|
|
171
202
|
- **To disconnect** it, swipe it away in Connected AI: the app also revokes
|
|
@@ -183,7 +214,7 @@ error to retry.
|
|
|
183
214
|
| `disconnected` | You disconnected the agent (or removed its connection): open the link it shows and approve it in the app, or give it a new code. |
|
|
184
215
|
| `npx` not found | Use its full path (`which npx` prints it), as above. |
|
|
185
216
|
| `key_not_saved`, `key_unreadable` | Make the key file readable and writable by the user the agent runs as, or set `DREAMCASH_AGENT_KEY_FILE` to a file that is, then restart the agent. When the key is in the macOS keychain or a Linux keyring, `tell_the_user` says how to open it: usually start the agent from your logged-in desktop session (the store is locked over SSH and before you log in), or on macOS unlock the keychain first (`security unlock-keychain`). Never pair again to get past `key_unreadable`: the key you approved is still there. An app that runs servers in a sandbox (e.g. Gemini for Mac) may allow writes only to some folders: put the key file in one of them. Deleting a paired key file disconnects this machine. |
|
|
186
|
-
|
|
|
217
|
+
| The agent can't find the Dreamcash tools (`Tool ... was not found`), or can't trade on its own | Tell the agent to remove the Dreamcash MCP server and add it again with `npx -y @dreamcash-org/mcp@latest`, then restart the agent. Some clients keep an old tool list, or run an old version npx has cached. Trading on its own works only through this server, not through Dreamcash's hosted connector. |
|
|
187
218
|
| `code_invalid` | The code expired or was used: read the one the app shows now (Settings › Connected AI) and give it to the agent. |
|
|
188
219
|
| `update_required` | Run the server as `npx -y @dreamcash-org/mcp@latest` once (npx may keep using a version it already downloaded), then restart the agent. |
|
|
189
220
|
|
|
@@ -731,7 +731,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
731
731
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
732
732
|
THE SOFTWARE.
|
|
733
733
|
|
|
734
|
-
## @noble/hashes
|
|
734
|
+
## @noble/hashes 2.4.0 (MIT)
|
|
735
735
|
|
|
736
736
|
The MIT License (MIT)
|
|
737
737
|
|
|
@@ -755,7 +755,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
755
755
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
756
756
|
THE SOFTWARE.
|
|
757
757
|
|
|
758
|
-
## @noble/hashes
|
|
758
|
+
## @noble/hashes 1.8.0 (MIT)
|
|
759
759
|
|
|
760
760
|
The MIT License (MIT)
|
|
761
761
|
|