@hypurrquant/defi-cli 0.1.0 → 0.2.0
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 +356 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/main.js +8 -2
- package/dist/main.js.map +1 -1
- package/dist/mcp-server.js +5592 -0
- package/dist/mcp-server.js.map +1 -0
- package/mcp-config.example.json +13 -0
- package/package.json +38 -6
- package/config/protocols/lending/.omc/state/last-tool-error.json +0 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"defi-cli": {
|
|
4
|
+
"command": "npx",
|
|
5
|
+
"args": ["-y", "@hypurrquant/defi-cli/dist/mcp-server.js"],
|
|
6
|
+
"env": {
|
|
7
|
+
"DEFI_PRIVATE_KEY": "your_private_key_here",
|
|
8
|
+
"DEFI_WALLET_ADDRESS": "your_wallet_address_here",
|
|
9
|
+
"HYPEREVM_RPC_URL": "https://rpc.hyperliquid.xyz/evm"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypurrquant/defi-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Multi-chain DeFi CLI — lending, DEX, LP, bridge, vault, staking from your terminal",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"bin": {
|
|
7
|
-
"defi": "dist/main.js"
|
|
8
|
+
"defi": "dist/main.js",
|
|
9
|
+
"defi-mcp": "dist/mcp-server.js"
|
|
8
10
|
},
|
|
9
11
|
"files": [
|
|
10
12
|
"dist",
|
|
11
|
-
"config"
|
|
13
|
+
"config",
|
|
14
|
+
"mcp-config.example.json"
|
|
12
15
|
],
|
|
16
|
+
"keywords": [
|
|
17
|
+
"defi",
|
|
18
|
+
"cli",
|
|
19
|
+
"hyperevm",
|
|
20
|
+
"hyperliquid",
|
|
21
|
+
"mantle",
|
|
22
|
+
"aave",
|
|
23
|
+
"uniswap",
|
|
24
|
+
"lending",
|
|
25
|
+
"dex",
|
|
26
|
+
"bridge",
|
|
27
|
+
"vault",
|
|
28
|
+
"staking",
|
|
29
|
+
"lp",
|
|
30
|
+
"evm",
|
|
31
|
+
"web3"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": "^20.0.0 || ^22.0.0 || ^24.0.0"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/hypurrquant/defi-cli.git"
|
|
39
|
+
},
|
|
13
40
|
"scripts": {
|
|
14
41
|
"build": "tsup",
|
|
15
42
|
"test": "vitest run",
|
|
@@ -18,10 +45,15 @@
|
|
|
18
45
|
"prepublishOnly": "pnpm run build"
|
|
19
46
|
},
|
|
20
47
|
"dependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@hypurrquant/defi-protocols": "workspace:*",
|
|
48
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
23
49
|
"commander": "^13.0.0",
|
|
50
|
+
"dotenv": "^17.3.1",
|
|
24
51
|
"picocolors": "^1.1.0",
|
|
25
|
-
"viem": "^2.23.0"
|
|
52
|
+
"viem": "^2.23.0",
|
|
53
|
+
"zod": "^3.24.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@hypurrquant/defi-core": "workspace:*",
|
|
57
|
+
"@hypurrquant/defi-protocols": "workspace:*"
|
|
26
58
|
}
|
|
27
59
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tool_name": "Bash",
|
|
3
|
-
"tool_input_preview": "{\"command\":\"rsync -av /Users/hik/Documents/GitHub/defi-cli/config/protocols/ /Users/hik/Documents/GitHub/defi-cli/ts/config/protocols/ 2>&1 | tail -2 && pnpm build 2>&1 | grep \\\"Done\\\" && echo \\\"=== C...",
|
|
4
|
-
"error": "Exit code 1\nsent 12819 bytes received 92 bytes 985572 bytes/sec\ntotal size is 83034 speedup is 6.43",
|
|
5
|
-
"timestamp": "2026-03-21T09:20:25.337Z",
|
|
6
|
-
"retry_count": 1
|
|
7
|
-
}
|