omnitrade-mcp 0.7.4 → 0.7.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/dist/cli.js +27 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { existsSync, mkdirSync, writeFileSync, readFileSync } from "fs";
|
|
|
5
5
|
import { homedir } from "os";
|
|
6
6
|
import { join } from "path";
|
|
7
7
|
import * as readline from "readline";
|
|
8
|
-
var VERSION = "0.7.
|
|
8
|
+
var VERSION = "0.7.5";
|
|
9
9
|
var CONFIG_PATH = join(homedir(), ".omnitrade", "config.json");
|
|
10
10
|
var c = {
|
|
11
11
|
reset: "\x1B[0m",
|
|
@@ -561,6 +561,32 @@ async function runSetupWizard() {
|
|
|
561
561
|
${c.cyan}3.${c.reset} Restart Claude Desktop
|
|
562
562
|
`);
|
|
563
563
|
}
|
|
564
|
+
const claudeCodePath = join(homedir(), ".claude", "settings.json");
|
|
565
|
+
const configureCode = await question2(` ${c.yellow}?${c.reset} Also configure Claude Code (terminal)? ${c.dim}(Y/n)${c.reset}: `);
|
|
566
|
+
if (configureCode.toLowerCase() !== "n") {
|
|
567
|
+
try {
|
|
568
|
+
let claudeCodeConfig = {};
|
|
569
|
+
const claudeCodeDir = join(homedir(), ".claude");
|
|
570
|
+
if (existsSync(claudeCodePath)) {
|
|
571
|
+
claudeCodeConfig = JSON.parse(readFileSync(claudeCodePath, "utf-8"));
|
|
572
|
+
} else {
|
|
573
|
+
if (!existsSync(claudeCodeDir)) {
|
|
574
|
+
mkdirSync(claudeCodeDir, { recursive: true });
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if (!claudeCodeConfig.mcpServers) {
|
|
578
|
+
claudeCodeConfig.mcpServers = {};
|
|
579
|
+
}
|
|
580
|
+
claudeCodeConfig.mcpServers.omnitrade = {
|
|
581
|
+
command: "omnitrade",
|
|
582
|
+
args: ["start"]
|
|
583
|
+
};
|
|
584
|
+
writeFileSync(claudeCodePath, JSON.stringify(claudeCodeConfig, null, 2));
|
|
585
|
+
console.log(` ${c.green}\u2713${c.reset} Claude Code configured! ${c.dim}${claudeCodePath}${c.reset}`);
|
|
586
|
+
} catch (error) {
|
|
587
|
+
console.log(` ${c.yellow}!${c.reset} Could not configure Claude Code: ${error.message}`);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
564
590
|
rl2.close();
|
|
565
591
|
const configuredExchanges = Object.keys(mergedConfig.exchanges);
|
|
566
592
|
const firstExchange = configuredExchanges[0] || "binance";
|
package/dist/index.js
CHANGED
|
@@ -976,7 +976,7 @@ function registerArbitrageTools(server, exchangeManager) {
|
|
|
976
976
|
}
|
|
977
977
|
|
|
978
978
|
// src/index.ts
|
|
979
|
-
var VERSION = "0.7.
|
|
979
|
+
var VERSION = "0.7.5";
|
|
980
980
|
function showBanner() {
|
|
981
981
|
console.error(`
|
|
982
982
|
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|