@dreamcash-org/mcp 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dreamcash
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.
package/README.md CHANGED
@@ -1,3 +1,139 @@
1
- # Temporary Holding Version
1
+ # Dreamcash MCP
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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."
36
+
37
+ ## Set up
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
+
43
+ Add a local (stdio) MCP server that runs:
44
+
45
+ ```sh
46
+ npx -y @dreamcash-org/mcp
47
+ ```
48
+
49
+ **Claude Code**
50
+
51
+ ```sh
52
+ claude mcp add dreamcash -- npx -y @dreamcash-org/mcp
53
+ ```
54
+
55
+ **Claude Desktop, Cursor and other clients configured with JSON**
56
+
57
+ ```json
58
+ {
59
+ "mcpServers": {
60
+ "dreamcash": {
61
+ "command": "npx",
62
+ "args": ["-y", "@dreamcash-org/mcp"]
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ **Codex** (`~/.codex/config.toml`)
69
+
70
+ ```toml
71
+ [mcp_servers.dreamcash]
72
+ command = "npx"
73
+ args = ["-y", "@dreamcash-org/mcp"]
74
+ ```
75
+
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`.
78
+
79
+ ## Connect your account
80
+
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. |
128
+
129
+ ## Settings
130
+
131
+ | Variable | Default |
132
+ | --- | --- |
133
+ | `DREAMCASH_AGENT_KEY_FILE` | `~/.dreamcash/agent-key.json` |
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`.