@pgnio/helios-mcp 0.2.2 → 0.2.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 CHANGED
@@ -220,7 +220,9 @@ var marketSnapshotResolvedScopeSchema = import_zod.z.enum(["selected", "all", "e
220
220
  var marketSnapshotValueSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean(), import_zod.z.null()]);
221
221
  var marketSnapshotInputSchema = import_zod.z.object({
222
222
  scope: marketSnapshotScopeSchema.optional(),
223
- symbols: import_zod.z.array(import_zod.z.string().min(1)).min(1).optional()
223
+ symbols: import_zod.z.array(import_zod.z.string().min(1)).min(1).optional(),
224
+ fields: import_zod.z.array(import_zod.z.string().min(1)).min(1).optional().describe('Table columns to return, e.g. ["lp","r1h","r24h","hmi","reg","hs"]; sym and base always come back. Omit for all columns.'),
225
+ sort: import_zod.z.enum(["rank"]).optional().describe('"rank" orders rows by market cap rank, unranked last.')
224
226
  });
225
227
  var marketSnapshotChunkInputSchema = marketSnapshotInputSchema.extend({
226
228
  offset: import_zod.z.number().int().nonnegative().optional(),
@@ -2567,7 +2569,7 @@ function createHeliosMarketToolDefinitions(service) {
2567
2569
  {
2568
2570
  name: "helios_market_get_snapshot",
2569
2571
  title: "Get Helios Market Snapshot",
2570
- description: "Returns a compact market snapshot for the selected, all, or explicitly requested symbols.",
2572
+ description: "Returns a compact market snapshot for the selected, all, or explicitly requested symbols. The full table is large; pass fields to get only the columns you need.",
2571
2573
  inputSchema: marketSnapshotInputSchema,
2572
2574
  async execute(input) {
2573
2575
  const result = marketSnapshotToolOutputSchema.parse(await service.getSnapshot(input));
@@ -2835,7 +2837,7 @@ async function createHeliosAgentMcpServer(options) {
2835
2837
  const { McpServer } = await import("@modelcontextprotocol/sdk/server/mcp.js");
2836
2838
  const server = new McpServer({
2837
2839
  name: "helios",
2838
- version: "0.2.2"
2840
+ version: "0.2.3"
2839
2841
  });
2840
2842
  const sessionStore = options.sessionStore ?? new FileAgentSessionStore(options.sessionPath ?? getDefaultHeliosAgentMcpSessionPath());
2841
2843
  const client = new HeliosAgentAuthClient({
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createHeliosAgentMcpServer
4
- } from "./chunk-XE6HRID3.mjs";
4
+ } from "./chunk-UYCUR7QV.mjs";
5
5
 
6
6
  // src/cli.ts
7
7
  async function main() {
package/dist/index.d.mts CHANGED
@@ -206,6 +206,10 @@ declare const marketSnapshotInputSchema: z.ZodObject<{
206
206
  all: "all";
207
207
  }>>;
208
208
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ sort: z.ZodOptional<z.ZodEnum<{
211
+ rank: "rank";
212
+ }>>;
209
213
  }, z.core.$strip>;
210
214
  declare const marketSnapshotChunkInputSchema: z.ZodObject<{
211
215
  scope: z.ZodOptional<z.ZodEnum<{
@@ -213,6 +217,10 @@ declare const marketSnapshotChunkInputSchema: z.ZodObject<{
213
217
  all: "all";
214
218
  }>>;
215
219
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
+ sort: z.ZodOptional<z.ZodEnum<{
222
+ rank: "rank";
223
+ }>>;
216
224
  offset: z.ZodOptional<z.ZodNumber>;
217
225
  limit: z.ZodOptional<z.ZodNumber>;
218
226
  }, z.core.$strip>;
@@ -1457,10 +1465,16 @@ declare function createHeliosMarketToolDefinitions(service: HeliosAgentMcpMarket
1457
1465
  all: "all";
1458
1466
  }>>;
1459
1467
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
1468
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1469
+ sort: z.ZodOptional<z.ZodEnum<{
1470
+ rank: "rank";
1471
+ }>>;
1460
1472
  }, z.core.$strip>;
1461
1473
  execute(input: {
1462
1474
  scope?: "selected" | "all" | undefined;
1463
1475
  symbols?: string[] | undefined;
1476
+ fields?: string[] | undefined;
1477
+ sort?: "rank" | undefined;
1464
1478
  }): Promise<{
1465
1479
  content: {
1466
1480
  type: "text";
@@ -1497,12 +1511,18 @@ declare function createHeliosMarketToolDefinitions(service: HeliosAgentMcpMarket
1497
1511
  all: "all";
1498
1512
  }>>;
1499
1513
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
1514
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1515
+ sort: z.ZodOptional<z.ZodEnum<{
1516
+ rank: "rank";
1517
+ }>>;
1500
1518
  offset: z.ZodOptional<z.ZodNumber>;
1501
1519
  limit: z.ZodOptional<z.ZodNumber>;
1502
1520
  }, z.core.$strip>;
1503
1521
  execute(input: {
1504
1522
  scope?: "selected" | "all" | undefined;
1505
1523
  symbols?: string[] | undefined;
1524
+ fields?: string[] | undefined;
1525
+ sort?: "rank" | undefined;
1506
1526
  offset?: number | undefined;
1507
1527
  limit?: number | undefined;
1508
1528
  }): Promise<{
package/dist/index.d.ts CHANGED
@@ -206,6 +206,10 @@ declare const marketSnapshotInputSchema: z.ZodObject<{
206
206
  all: "all";
207
207
  }>>;
208
208
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ sort: z.ZodOptional<z.ZodEnum<{
211
+ rank: "rank";
212
+ }>>;
209
213
  }, z.core.$strip>;
210
214
  declare const marketSnapshotChunkInputSchema: z.ZodObject<{
211
215
  scope: z.ZodOptional<z.ZodEnum<{
@@ -213,6 +217,10 @@ declare const marketSnapshotChunkInputSchema: z.ZodObject<{
213
217
  all: "all";
214
218
  }>>;
215
219
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
+ sort: z.ZodOptional<z.ZodEnum<{
222
+ rank: "rank";
223
+ }>>;
216
224
  offset: z.ZodOptional<z.ZodNumber>;
217
225
  limit: z.ZodOptional<z.ZodNumber>;
218
226
  }, z.core.$strip>;
@@ -1457,10 +1465,16 @@ declare function createHeliosMarketToolDefinitions(service: HeliosAgentMcpMarket
1457
1465
  all: "all";
1458
1466
  }>>;
1459
1467
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
1468
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1469
+ sort: z.ZodOptional<z.ZodEnum<{
1470
+ rank: "rank";
1471
+ }>>;
1460
1472
  }, z.core.$strip>;
1461
1473
  execute(input: {
1462
1474
  scope?: "selected" | "all" | undefined;
1463
1475
  symbols?: string[] | undefined;
1476
+ fields?: string[] | undefined;
1477
+ sort?: "rank" | undefined;
1464
1478
  }): Promise<{
1465
1479
  content: {
1466
1480
  type: "text";
@@ -1497,12 +1511,18 @@ declare function createHeliosMarketToolDefinitions(service: HeliosAgentMcpMarket
1497
1511
  all: "all";
1498
1512
  }>>;
1499
1513
  symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
1514
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1515
+ sort: z.ZodOptional<z.ZodEnum<{
1516
+ rank: "rank";
1517
+ }>>;
1500
1518
  offset: z.ZodOptional<z.ZodNumber>;
1501
1519
  limit: z.ZodOptional<z.ZodNumber>;
1502
1520
  }, z.core.$strip>;
1503
1521
  execute(input: {
1504
1522
  scope?: "selected" | "all" | undefined;
1505
1523
  symbols?: string[] | undefined;
1524
+ fields?: string[] | undefined;
1525
+ sort?: "rank" | undefined;
1506
1526
  offset?: number | undefined;
1507
1527
  limit?: number | undefined;
1508
1528
  }): Promise<{
package/dist/index.js CHANGED
@@ -255,7 +255,9 @@ var marketSnapshotResolvedScopeSchema = import_zod.z.enum(["selected", "all", "e
255
255
  var marketSnapshotValueSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean(), import_zod.z.null()]);
256
256
  var marketSnapshotInputSchema = import_zod.z.object({
257
257
  scope: marketSnapshotScopeSchema.optional(),
258
- symbols: import_zod.z.array(import_zod.z.string().min(1)).min(1).optional()
258
+ symbols: import_zod.z.array(import_zod.z.string().min(1)).min(1).optional(),
259
+ fields: import_zod.z.array(import_zod.z.string().min(1)).min(1).optional().describe('Table columns to return, e.g. ["lp","r1h","r24h","hmi","reg","hs"]; sym and base always come back. Omit for all columns.'),
260
+ sort: import_zod.z.enum(["rank"]).optional().describe('"rank" orders rows by market cap rank, unranked last.')
259
261
  });
260
262
  var marketSnapshotChunkInputSchema = marketSnapshotInputSchema.extend({
261
263
  offset: import_zod.z.number().int().nonnegative().optional(),
@@ -2636,7 +2638,7 @@ function createHeliosMarketToolDefinitions(service) {
2636
2638
  {
2637
2639
  name: "helios_market_get_snapshot",
2638
2640
  title: "Get Helios Market Snapshot",
2639
- description: "Returns a compact market snapshot for the selected, all, or explicitly requested symbols.",
2641
+ description: "Returns a compact market snapshot for the selected, all, or explicitly requested symbols. The full table is large; pass fields to get only the columns you need.",
2640
2642
  inputSchema: marketSnapshotInputSchema,
2641
2643
  async execute(input) {
2642
2644
  const result = marketSnapshotToolOutputSchema.parse(await service.getSnapshot(input));
@@ -2904,7 +2906,7 @@ async function createHeliosAgentMcpServer(options) {
2904
2906
  const { McpServer } = await import("@modelcontextprotocol/sdk/server/mcp.js");
2905
2907
  const server = new McpServer({
2906
2908
  name: "helios",
2907
- version: "0.2.2"
2909
+ version: "0.2.3"
2908
2910
  });
2909
2911
  const sessionStore = options.sessionStore ?? new FileAgentSessionStore(options.sessionPath ?? getDefaultHeliosAgentMcpSessionPath());
2910
2912
  const client = new HeliosAgentAuthClient({
package/dist/index.mjs CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  retryAfterUnauthorizedRefresh,
25
25
  toolAnnotations,
26
26
  withDataText
27
- } from "./chunk-XE6HRID3.mjs";
27
+ } from "./chunk-UYCUR7QV.mjs";
28
28
  export {
29
29
  FileAgentSessionStore,
30
30
  HOSTED_RECONNECT_MESSAGE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgnio/helios-mcp",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Helios MCP server: connect an AI agent to your Helios account to read markets and your portfolio and to trade on Hyperliquid. 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",