omnitrade-mcp 0.6.2 → 0.6.3
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/dist/cli.js +54 -17
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -21,14 +21,32 @@ var c = {
|
|
|
21
21
|
orange: "\x1B[38;5;208m",
|
|
22
22
|
red: "\x1B[38;5;196m"
|
|
23
23
|
};
|
|
24
|
+
var W = 58;
|
|
25
|
+
function center(text, width) {
|
|
26
|
+
const visibleLength = text.replace(/\x1b\[[0-9;]*m/g, "").length;
|
|
27
|
+
const totalPadding = width - visibleLength;
|
|
28
|
+
const leftPad = Math.floor(totalPadding / 2);
|
|
29
|
+
const rightPad = totalPadding - leftPad;
|
|
30
|
+
return " ".repeat(Math.max(0, leftPad)) + text + " ".repeat(Math.max(0, rightPad));
|
|
31
|
+
}
|
|
24
32
|
function printBanner() {
|
|
33
|
+
const line = "-".repeat(W);
|
|
25
34
|
console.log(`
|
|
26
|
-
${c.cyan}
|
|
35
|
+
${c.cyan}+${line}+${c.reset}
|
|
36
|
+
${c.cyan}|${c.reset}${center(`${c.cyan}o${c.gray}----${c.purple}o${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
37
|
+
${c.cyan}|${c.reset}${center(`${c.white}${c.bold}OmniTrade${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
38
|
+
${c.cyan}|${c.reset}${center(`${c.dim}v${VERSION}${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
39
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
40
|
+
${c.cyan}|${c.reset}${center(`${c.white}Talk to your crypto with Claude${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
41
|
+
${c.cyan}|${c.reset}${center(`${c.dim}107 exchanges. Natural language. Local & secure.${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
42
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
43
|
+
${c.cyan}|${c.reset}${center(`${c.gray}by ${c.cyan}Connectry${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
44
|
+
${c.cyan}+${line}+${c.reset}
|
|
27
45
|
`);
|
|
28
46
|
}
|
|
29
47
|
function printCompactLogo() {
|
|
30
48
|
console.log(`
|
|
31
|
-
${c.cyan}
|
|
49
|
+
${c.cyan}o${c.gray}--${c.purple}o${c.reset} ${c.white}${c.bold}OmniTrade${c.reset} ${c.gray}v${VERSION}${c.reset} ${c.dim}by Connectry${c.reset}
|
|
32
50
|
`);
|
|
33
51
|
}
|
|
34
52
|
var EXCHANGE_INFO = {
|
|
@@ -129,33 +147,52 @@ function printHelp() {
|
|
|
129
147
|
printBanner();
|
|
130
148
|
console.log(`
|
|
131
149
|
${c.white}${c.bold}QUICK START${c.reset}
|
|
132
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
150
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
133
151
|
|
|
134
|
-
${c.yellow}$${c.reset} ${c.green}${c.bold}omnitrade setup${c.reset} ${c.dim}\u2190
|
|
152
|
+
${c.yellow}$${c.reset} ${c.green}${c.bold}omnitrade setup${c.reset} ${c.dim}\u2190 2-minute guided wizard${c.reset}
|
|
135
153
|
|
|
136
154
|
${c.white}${c.bold}COMMANDS${c.reset}
|
|
137
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
155
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
138
156
|
|
|
139
157
|
${c.green}setup${c.reset} Interactive setup wizard
|
|
140
|
-
${c.cyan}start${c.reset} Launch MCP server for Claude
|
|
141
|
-
${c.cyan}test${c.reset} Verify exchange connections
|
|
142
|
-
${c.cyan}config${c.reset} View saved configuration
|
|
158
|
+
${c.cyan}start${c.reset} Launch MCP server for Claude Desktop
|
|
159
|
+
${c.cyan}test${c.reset} Verify your exchange connections work
|
|
160
|
+
${c.cyan}config${c.reset} View saved API configuration
|
|
143
161
|
${c.cyan}exchanges${c.reset} Browse all 107 supported exchanges
|
|
144
162
|
${c.cyan}help${c.reset} Show this help
|
|
145
163
|
|
|
146
|
-
${c.white}${c.bold}
|
|
147
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
164
|
+
${c.white}${c.bold}WHAT YOU CAN DO${c.reset} ${c.dim}(once connected)${c.reset}
|
|
165
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
166
|
+
|
|
167
|
+
${c.cyan}Portfolio${c.reset} "What's my portfolio worth in USD?"
|
|
168
|
+
"Show all my holdings across exchanges"
|
|
169
|
+
"What % of my portfolio is in ETH?"
|
|
148
170
|
|
|
149
|
-
${c.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
171
|
+
${c.cyan}Prices${c.reset} "What's the current BTC price?"
|
|
172
|
+
"Compare ETH prices across all my exchanges"
|
|
173
|
+
"Alert me when SOL drops below $100"
|
|
174
|
+
|
|
175
|
+
${c.cyan}Trading${c.reset} "Buy 0.1 ETH at market price"
|
|
176
|
+
"Place a limit order for BTC at $40,000"
|
|
177
|
+
"What are my open orders?"
|
|
178
|
+
|
|
179
|
+
${c.cyan}Analysis${c.reset} "Find arbitrage opportunities for BTC"
|
|
180
|
+
"Which exchange has the lowest fees?"
|
|
181
|
+
"Show my trade history for this week"
|
|
182
|
+
|
|
183
|
+
${c.white}${c.bold}SECURITY${c.reset}
|
|
184
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
185
|
+
|
|
186
|
+
${c.green}\u2713${c.reset} Keys stored locally at ${c.dim}~/.omnitrade/config.json${c.reset}
|
|
187
|
+
${c.green}\u2713${c.reset} Never transmitted anywhere \u2014 runs 100% on your machine
|
|
188
|
+
${c.green}\u2713${c.reset} We recommend: ${c.white}read + trade only${c.reset}, ${c.red}never withdrawals${c.reset}
|
|
153
189
|
|
|
154
190
|
${c.white}${c.bold}LINKS${c.reset}
|
|
155
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
191
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
156
192
|
|
|
157
|
-
${c.blue}Docs
|
|
158
|
-
${c.blue}Claude
|
|
193
|
+
${c.blue}Docs${c.reset} github.com/Connectry-io/omnitrade-mcp
|
|
194
|
+
${c.blue}Claude${c.reset} claude.ai/download
|
|
195
|
+
${c.blue}Support${c.reset} discord.gg/connectry
|
|
159
196
|
|
|
160
197
|
`);
|
|
161
198
|
}
|