@pgnio/helios-mcp 0.2.9 → 0.5.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 +19 -2
- package/dist/chunk-XM257Y63.mjs +4307 -0
- package/dist/cli.js +2284 -1358
- package/dist/cli.mjs +8 -4
- package/dist/index.d.mts +1032 -134
- package/dist/index.d.ts +1032 -134
- package/dist/index.js +2250 -987
- package/dist/index.mjs +79 -3
- package/docs/ai-agent-mcp/04_trading/01_tools.txt +2 -1
- package/package.json +9 -16
- package/dist/chunk-7TMDGB6C.mjs +0 -3084
- package/dist/chunk-LMZEWQVW.mjs +0 -3084
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DEFAULT_HELIOS_BASE_URL,
|
|
3
|
+
DEFAULT_HELIOS_SESSION_ISSUER,
|
|
2
4
|
DEFAULT_SNAPSHOT_FIELDS,
|
|
3
5
|
DEFAULT_SNAPSHOT_TOP,
|
|
4
6
|
FileAgentSessionStore,
|
|
@@ -10,7 +12,15 @@ import {
|
|
|
10
12
|
HeliosAgentMcpMarketService,
|
|
11
13
|
HeliosAgentMcpProviderService,
|
|
12
14
|
HeliosAgentMcpTradingService,
|
|
15
|
+
MAX_TOOL_INPUT_ELEMENTS,
|
|
16
|
+
MCP_PROFILES,
|
|
17
|
+
MIN_ORDER_USD,
|
|
13
18
|
MemoryAgentMcpSessionStore,
|
|
19
|
+
TRADE_KEY_WINDOW_SECONDS,
|
|
20
|
+
accountInputSchema,
|
|
21
|
+
ago,
|
|
22
|
+
assertHeliosBaseUrl,
|
|
23
|
+
candlesInputSchema,
|
|
14
24
|
compactSymbolDetail,
|
|
15
25
|
createHeliosAccountToolDefinitions,
|
|
16
26
|
createHeliosAgentMcpServer,
|
|
@@ -20,17 +30,47 @@ import {
|
|
|
20
30
|
createHeliosMarketToolDefinitions,
|
|
21
31
|
createHeliosProviderToolDefinitions,
|
|
22
32
|
createHeliosTradingToolDefinitions,
|
|
33
|
+
createLeanToolDefinitions,
|
|
34
|
+
entryText,
|
|
23
35
|
formatHeliosLoginPrompt,
|
|
24
36
|
getDefaultHeliosAgentMcpDocsRoot,
|
|
25
37
|
getDefaultHeliosAgentMcpSessionPath,
|
|
38
|
+
isSameHeliosIssuer,
|
|
39
|
+
leanToolsFor,
|
|
40
|
+
marketInputSchema,
|
|
41
|
+
moveText,
|
|
42
|
+
pct,
|
|
26
43
|
pendingAgentLoginSchema,
|
|
44
|
+
positionLine,
|
|
45
|
+
practiceOnly,
|
|
46
|
+
price,
|
|
47
|
+
protectInputSchema,
|
|
48
|
+
renderAccount,
|
|
49
|
+
renderBoard,
|
|
50
|
+
renderCandles,
|
|
51
|
+
renderCoin,
|
|
52
|
+
renderMarket,
|
|
53
|
+
renderMoves,
|
|
54
|
+
renderTrades,
|
|
27
55
|
retryAfterUnauthorizedRefresh,
|
|
56
|
+
smBoardInputSchema,
|
|
57
|
+
smCoinInputSchema,
|
|
58
|
+
smMovesInputSchema,
|
|
28
59
|
toolAnnotations,
|
|
29
60
|
topOfSnapshot,
|
|
61
|
+
tradeInputSchema,
|
|
62
|
+
tradeKeyFor,
|
|
63
|
+
trader,
|
|
64
|
+
tradesInputSchema,
|
|
65
|
+
tradingLine,
|
|
66
|
+
usd,
|
|
30
67
|
withDataText,
|
|
31
|
-
withSnapshotDefaults
|
|
32
|
-
|
|
68
|
+
withSnapshotDefaults,
|
|
69
|
+
wrongSideTpSl
|
|
70
|
+
} from "./chunk-XM257Y63.mjs";
|
|
33
71
|
export {
|
|
72
|
+
DEFAULT_HELIOS_BASE_URL,
|
|
73
|
+
DEFAULT_HELIOS_SESSION_ISSUER,
|
|
34
74
|
DEFAULT_SNAPSHOT_FIELDS,
|
|
35
75
|
DEFAULT_SNAPSHOT_TOP,
|
|
36
76
|
FileAgentSessionStore,
|
|
@@ -42,7 +82,15 @@ export {
|
|
|
42
82
|
HeliosAgentMcpMarketService,
|
|
43
83
|
HeliosAgentMcpProviderService,
|
|
44
84
|
HeliosAgentMcpTradingService,
|
|
85
|
+
MAX_TOOL_INPUT_ELEMENTS,
|
|
86
|
+
MCP_PROFILES,
|
|
87
|
+
MIN_ORDER_USD,
|
|
45
88
|
MemoryAgentMcpSessionStore,
|
|
89
|
+
TRADE_KEY_WINDOW_SECONDS,
|
|
90
|
+
accountInputSchema,
|
|
91
|
+
ago,
|
|
92
|
+
assertHeliosBaseUrl,
|
|
93
|
+
candlesInputSchema,
|
|
46
94
|
compactSymbolDetail,
|
|
47
95
|
createHeliosAccountToolDefinitions,
|
|
48
96
|
createHeliosAgentMcpServer,
|
|
@@ -52,13 +100,41 @@ export {
|
|
|
52
100
|
createHeliosMarketToolDefinitions,
|
|
53
101
|
createHeliosProviderToolDefinitions,
|
|
54
102
|
createHeliosTradingToolDefinitions,
|
|
103
|
+
createLeanToolDefinitions,
|
|
104
|
+
entryText,
|
|
55
105
|
formatHeliosLoginPrompt,
|
|
56
106
|
getDefaultHeliosAgentMcpDocsRoot,
|
|
57
107
|
getDefaultHeliosAgentMcpSessionPath,
|
|
108
|
+
isSameHeliosIssuer,
|
|
109
|
+
leanToolsFor,
|
|
110
|
+
marketInputSchema,
|
|
111
|
+
moveText,
|
|
112
|
+
pct,
|
|
58
113
|
pendingAgentLoginSchema,
|
|
114
|
+
positionLine,
|
|
115
|
+
practiceOnly,
|
|
116
|
+
price,
|
|
117
|
+
protectInputSchema,
|
|
118
|
+
renderAccount,
|
|
119
|
+
renderBoard,
|
|
120
|
+
renderCandles,
|
|
121
|
+
renderCoin,
|
|
122
|
+
renderMarket,
|
|
123
|
+
renderMoves,
|
|
124
|
+
renderTrades,
|
|
59
125
|
retryAfterUnauthorizedRefresh,
|
|
126
|
+
smBoardInputSchema,
|
|
127
|
+
smCoinInputSchema,
|
|
128
|
+
smMovesInputSchema,
|
|
60
129
|
toolAnnotations,
|
|
61
130
|
topOfSnapshot,
|
|
131
|
+
tradeInputSchema,
|
|
132
|
+
tradeKeyFor,
|
|
133
|
+
trader,
|
|
134
|
+
tradesInputSchema,
|
|
135
|
+
tradingLine,
|
|
136
|
+
usd,
|
|
62
137
|
withDataText,
|
|
63
|
-
withSnapshotDefaults
|
|
138
|
+
withSnapshotDefaults,
|
|
139
|
+
wrongSideTpSl
|
|
64
140
|
};
|
|
@@ -60,7 +60,8 @@ FINALITY
|
|
|
60
60
|
|
|
61
61
|
TOOL: helios_trading_close
|
|
62
62
|
WHAT IT DOES
|
|
63
|
-
Closes the full open position for a symbol.
|
|
63
|
+
Closes the full open position for a symbol (reduce-only, sized from the live position, so no dust is left).
|
|
64
|
+
HIP-3 symbols take their dex prefix, e.g. xyz:SNDK.
|
|
64
65
|
SCOPE
|
|
65
66
|
orders:write
|
|
66
67
|
INPUT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgnio/helios-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Helios MCP server: connect an AI agent to your Helios account to read markets and your portfolio and
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Helios MCP server: connect an AI agent to your Helios account to follow the top Hyperliquid traders, read markets and your portfolio, and trade. Most apps can use the hosted URL https://helios.pgn.io/mcp instead.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://helios.pgn.io/?connect=ai",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -33,23 +33,18 @@
|
|
|
33
33
|
"trading"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@modelcontextprotocol/sdk": "1.
|
|
37
|
-
"zod": "4.
|
|
36
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
37
|
+
"zod": "4.6.7"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@trivago/prettier-plugin-sort-imports": "6.0.0",
|
|
41
40
|
"@types/node": "24.10.1",
|
|
42
|
-
"@
|
|
43
|
-
"@typescript-eslint/parser": "8.46.4",
|
|
44
|
-
"@vitest/coverage-v8": "4.0.9",
|
|
41
|
+
"@vitest/coverage-v8": "4.1.12",
|
|
45
42
|
"eslint": "9.39.1",
|
|
46
|
-
"eslint-config-prettier": "10.1.8",
|
|
47
|
-
"eslint-plugin-prettier": "5.5.4",
|
|
48
43
|
"prettier": "3.6.2",
|
|
49
44
|
"tsup": "8.5.1",
|
|
50
45
|
"typescript": "5.9.3",
|
|
51
46
|
"typescript-eslint": "8.46.4",
|
|
52
|
-
"vitest": "4.
|
|
47
|
+
"vitest": "4.1.12",
|
|
53
48
|
"@supercodebros/helios-agent": "0.1.0"
|
|
54
49
|
},
|
|
55
50
|
"engines": {
|
|
@@ -58,12 +53,10 @@
|
|
|
58
53
|
"scripts": {
|
|
59
54
|
"build": "tsup",
|
|
60
55
|
"dev": "tsup --watch",
|
|
61
|
-
"lint": "eslint src/**/*.ts",
|
|
62
|
-
"lint:fix": "eslint src/**/*.ts --fix",
|
|
56
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
57
|
+
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
63
58
|
"test": "vitest run",
|
|
64
59
|
"test:watch": "vitest",
|
|
65
|
-
"typecheck": "tsc --noEmit --project tsconfig.json"
|
|
66
|
-
"format": "prettier . --write",
|
|
67
|
-
"format:check": "prettier . --check"
|
|
60
|
+
"typecheck": "tsc --noEmit --project tsconfig.json"
|
|
68
61
|
}
|
|
69
62
|
}
|