@dreamcash-org/mcp 0.1.0 → 0.1.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 CHANGED
@@ -1,65 +1,139 @@
1
1
  # Dreamcash MCP
2
2
 
3
- Connects your own AI agent (Claude Code, Grok Bot, Hermes, OpenClaw, or any
4
- MCP client that runs local servers) to your [Dreamcash](https://dreamcash.xyz)
5
- account. Your agent can read your account and Hyperliquid's markets, and ask
6
- for trades. Every trade waits for you to confirm it in your own wallet.
7
-
8
- Chat apps that connect to remote MCP servers (Claude, ChatGPT, Grok) need no
9
- install: add `https://api.dreamcash.xyz/mcp` as a connector instead.
3
+ Let your own AI agent work with your [Dreamcash](https://dreamcash.xyz)
4
+ account. Dreamcash is a trading app on Hyperliquid; this MCP server lets an
5
+ agent such as Claude Code, Grok Bot, Hermes, OpenClaw or Cursor read your
6
+ account and markets, and trade: **each trade confirmed by you in your own
7
+ wallet, or, if you let it, on its own within limits you set.**
8
+
9
+ > Using a chat app that connects to remote MCP servers (Claude, ChatGPT,
10
+ > Grok)? You don't need this package: add `https://api.dreamcash.xyz/mcp` as
11
+ > a custom connector instead.
12
+
13
+ ## What your agent can do
14
+
15
+ - **Read**: balances, positions, open orders, trade and order history, PnL,
16
+ funding and transfers, XP and rewards, vaults, and Hyperliquid's markets
17
+ (perps, HIP-3 markets, spot, prediction markets) with prices and charts.
18
+ - **Ask for trades**: open, close and resize positions, limit and market
19
+ orders, cancel or change orders, take profit and stop loss, leverage and
20
+ margin, spot and prediction orders, vault deposits and withdrawals, moving
21
+ USDC between spot and perps, and withdrawing to one of your own wallets.
22
+ Each request gives you a link to review exactly what will be signed, and
23
+ confirm it in your wallet. Requests you don't confirm expire after 15
24
+ minutes. Trades pay the same fees as in the app.
25
+ - **Trade on its own**, if you choose it when you connect: your main wallet
26
+ approves the agent's key on Hyperliquid once, for the days you pick (up to
27
+ 180), and its orders, position changes and HLP moves on your main wallet go
28
+ through without asking you, within your limits per order, on leverage and
29
+ per day. Withdrawals and transfers always wait for you.
30
+
31
+ Try asking it:
32
+
33
+ - "How did my positions do this week?"
34
+ - "Buy $50 of HYPE at 3x with a stop loss 5% below."
35
+ - "Close everything I have open on BTC."
10
36
 
11
37
  ## Set up
12
38
 
39
+ You need Node.js 20 or newer and a Dreamcash account (made in the Dreamcash
40
+ app for [iPhone](https://apps.apple.com/app/id6748916424) or
41
+ [Android](https://play.google.com/store/apps/details?id=xyz.dreamcash.app)).
42
+
13
43
  Add a local (stdio) MCP server that runs:
14
44
 
15
45
  ```sh
16
46
  npx -y @dreamcash-org/mcp
17
47
  ```
18
48
 
19
- Claude Code:
49
+ **Claude Code**
20
50
 
21
51
  ```sh
22
52
  claude mcp add dreamcash -- npx -y @dreamcash-org/mcp
23
53
  ```
24
54
 
25
- Any client configured with JSON:
55
+ **Claude Desktop, Cursor and other clients configured with JSON**
26
56
 
27
57
  ```json
28
58
  {
29
59
  "mcpServers": {
30
- "dreamcash": { "command": "npx", "args": ["-y", "@dreamcash-org/mcp"] }
60
+ "dreamcash": {
61
+ "command": "npx",
62
+ "args": ["-y", "@dreamcash-org/mcp"]
63
+ }
31
64
  }
32
65
  }
33
66
  ```
34
67
 
35
- Needs Node.js 20 or newer.
36
-
37
- ## Connect your account
38
-
39
- Ask your agent to connect to Dreamcash. It gives you a short code and a link.
40
- Open the link, sign in with the account you use in the Dreamcash app and
41
- enter the code. The agent then sees your balances, positions, orders,
42
- history, PnL, XP and vaults, and can ask for trades: each one opens at a link
43
- for you to confirm in your own wallet.
68
+ **Codex** (`~/.codex/config.toml`)
44
69
 
45
- The pairing page shows the address of the key being paired; the agent tells
46
- you its own. Check that they match.
70
+ ```toml
71
+ [mcp_servers.dreamcash]
72
+ command = "npx"
73
+ args = ["-y", "@dreamcash-org/mcp"]
74
+ ```
47
75
 
48
- ## The key
76
+ **Agents that set up their own tools** (Grok Bot, Hermes, OpenClaw): ask
77
+ the agent to add a local MCP server that runs `npx -y @dreamcash-org/mcp`.
49
78
 
50
- The first time it connects, the server makes a new key and saves it in
51
- `~/.dreamcash/agent-key.json`, readable only by your user. Dreamcash never
52
- sees it. Every call to Dreamcash is signed with it, so whoever holds the file
53
- can read your account and ask for trades as this agent. It can't place a
54
- trade, withdraw or move your funds: each of those needs your own wallet.
55
- Delete the file to disconnect this machine.
79
+ ## Connect your account
56
80
 
57
- Pairing again makes a new key in `agent-key.json.pending`. The key before it
58
- keeps working until you approve the new one, which then replaces it.
81
+ 1. Ask your agent to connect to Dreamcash. It gives you a link and a short
82
+ code, valid for 10 minutes.
83
+ 2. Open the link, sign in with the account you use in the Dreamcash app and
84
+ enter the code.
85
+ 3. Check that the key address the page shows is the one your agent told you.
86
+ 4. Choose **ask me before each trade**, or **trade on its own** with its
87
+ limits (by default $1,000 per order, 10x leverage, $5,000 a day) and how
88
+ many days its key lasts. Then approve; for trading on its own, your wallet
89
+ then signs the key's approval on the next page.
90
+
91
+ ## Safety
92
+
93
+ - **Dreamcash holds no key that can trade for you.** Everything you confirm is
94
+ signed in your own wallet, on a page that shows exactly what you sign. Read
95
+ it before you confirm: an agent can be wrong, or be misled by what it reads.
96
+ - **The agent's key stays on its machine.** The first time it connects, this
97
+ server makes a key and saves it in `~/.dreamcash/agent-key.json`, readable
98
+ only by your user. Dreamcash never sees it. Every call the agent makes is
99
+ signed with it, so whoever holds the file can read your account and ask for
100
+ trades as this agent.
101
+ - **If you let it trade on its own**, that key becomes an API wallet of your
102
+ main account on Hyperliquid until it expires. Whoever holds the file can
103
+ then trade any market there directly, and deposit into HLP (deposits stay
104
+ locked for 4 days), outside Dreamcash and its limits: your limits bind only
105
+ the trades the agent asks Dreamcash for. It can't withdraw or send your
106
+ funds. So keep the file as safe as the money on your main wallet, and pick a
107
+ short key life. Before it signs a trade, this server checks that it is the
108
+ one the agent asked for, on your main wallet, at prices within 10% of
109
+ Hyperliquid's live price.
110
+ - **Enter only codes your agent showed you just now.** Never one someone sent
111
+ you: entering it would connect their agent to your account.
112
+ - **What the agent sees**: the balances, positions and history of every
113
+ wallet in your Dreamcash account.
114
+ - **To disconnect** this machine, delete the key file. A key you let trade
115
+ stays approved on Hyperliquid until it expires, or until you approve another
116
+ AI key, which replaces it. Pairing again makes a new key in
117
+ `agent-key.json.pending`; the key before it keeps working until you approve
118
+ the new one.
119
+
120
+ ## Troubleshooting
121
+
122
+ | What the agent reports | What to do |
123
+ | --- | --- |
124
+ | `dreamcash_unreachable` | Check the machine is online; try again in a minute. |
125
+ | `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. Deleting a paired key file disconnects this machine. |
126
+ | No Dreamcash tools after connecting | Restart the agent or reload its MCP servers: some clients don't notice new tools by themselves. |
127
+ | `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. |
59
128
 
60
129
  ## Settings
61
130
 
62
131
  | Variable | Default |
63
132
  | --- | --- |
64
133
  | `DREAMCASH_AGENT_KEY_FILE` | `~/.dreamcash/agent-key.json` |
65
- | `DREAMCASH_API_URL` | `https://api.dreamcash.xyz` |
134
+ | `DREAMCASH_API_URL` | `https://api.dreamcash.xyz` (https only; plain http only for `localhost`) |
135
+
136
+ ## License
137
+
138
+ MIT. The published file bundles open-source packages; their licenses are in
139
+ `dist/THIRD_PARTY_LICENSES.md`.