@battlegrid/mcp-server 32.0.41 → 32.0.44

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 CHANGED
@@ -38,6 +38,31 @@ Seeing package `31.x` alongside handshake `battlegrid@33.x` — the package **be
38
38
 
39
39
  **What this changes for you:** nothing about how you call anything. Upgrading the package no longer waits on a server deploy, and a server deploy no longer strands you on a package that names the wrong contract — reconnect and the announcement follows. **Contract breaking-change notes are no longer keyed to package versions**, since a contract move is no longer a release here; the v11-and-earlier notes below are kept as history, and the live vocabulary is always discovery.
40
40
 
41
+ ## Contract history — v137.3 (the bar's traded notional in USD)
42
+
43
+ **Additive at v137.3: three metrics and one chart-axis family.** v137.3 is the contract on top of v137.2. Nothing a client
44
+ sends is refused that v137.2 accepted. Reconnect the proxy, or restart it, so discovery reads the widened vocabulary.
45
+
46
+ ### Widened input — new metrics
47
+
48
+ - **`QUOTE_VOL`** (`quoteVol`): the bar's traded notional in USD, the sum of each trade's price × size from the live tape.
49
+ - **`BUY_QUOTE_VOL` and `SELL_QUOTE_VOL`** (`buyQuoteVol`, `sellQuoteVol`): the same, per taker side. The total is
50
+ always the two sides added.
51
+ - **Each ranks exchange-wide**: one dollar is one dollar on every coin. The metric-key enum and the ranked-metric enum
52
+ widen on every input and output that carries them.
53
+ - **A bar holding a minute the live tape did not cover reads each one absent, never zero.** An MDS restart opens such a
54
+ minute, so the bars around one read absent for now.
55
+
56
+ ### Widened output enum
57
+
58
+ - **The chart-axis family gains `notional`**, the three metrics' own scale, on the output that carries it
59
+ (`get_agent_coin_qualification`'s `axisFamily`).
60
+
61
+ ### Digest move
62
+
63
+ - **`vocabularyDigest` and the authoring catalog digest move** with the three metrics. A client caching vocabulary
64
+ against either re-reads `list_strategy_vocabulary`.
65
+
41
66
  ## Contract history — v137.2 (the anchored VWAP family with σ bands, and week and month profiles)
42
67
 
43
68
  **Additive at v137.2: sixty-six metrics and five studies, one value withdrawn, and the metric vocabulary named once per
@@ -77,11 +102,12 @@ proxy, or restart it, so discovery reads the widened vocabulary.
77
102
  - **`vocabularyDigest` and the authoring catalog digest move** with the sixty-six metrics and five studies. A client
78
103
  caching vocabulary against either re-reads `list_strategy_vocabulary`.
79
104
 
80
- ## Contract history — v137.1 (a condition exit's evidence and slippage)
105
+ ## Contract history — v137.1 (a condition exit's evidence and slippage, and a spot venue's period bar over quiet minutes)
81
106
 
82
- **Additive at v137.1: one owner output field, and one served value moves.** v137.1 is the contract on top of v137.
83
- Nothing a client sends is refused that v137 accepted. Reconnect the proxy, or restart it, so discovery reads the widened
84
- output.
107
+ **Additive at v137.1: one owner output field, three glosses re-worded, and served values move.** v137.1 is the
108
+ contract on top of v137, announced once for two changes: a condition exit's evidence (#5809 in BattleGrid) and step 1
109
+ of BattleGrid's spot-coverage fix (#5832). Nothing a client sends is refused that v137 accepted. Reconnect the proxy,
110
+ or restart it, so discovery reads the widened output and the re-worded vocabulary.
85
111
 
86
112
  ### Widened output — the bars behind a condition exit
87
113
 
@@ -98,6 +124,32 @@ output.
98
124
 
99
125
  - **`slippageExit` on a `CONDITION_EXIT` close** is the exit average fill less the close of the bar the exit rule fired
100
126
  on, where it was null. Every other close kind is unchanged. `toolCount` stays 149.
127
+ - **A spot venue's bar exists for a period it covered and traded in, though quiet minutes in it hold no bar.** A venue
128
+ period used to need a bar in every minute, so a thin coin that went more than its spot-tape freshness target (at
129
+ least 15 minutes) without a trade inside an hour lost that hour's venue bar. Now the bar exists whenever every minute
130
+ was covered and the venue traded in the period, or carried its last price through every minute. So
131
+ `SPOT_CLOSE_CB`, `SPOT_CLOSE_BN`, `SPOT_CLOSE_BYB`, `BUY_PRES_CB`, `BUY_PRES_BN`, `BUY_PRES_BYB`, the
132
+ `spot.venues.*` members, the five declared venue spreads (`SPOT_CLOSE_CB × spread(SPOT_CLOSE_BN)`,
133
+ `CLOSE × spread(SPOT_CLOSE_CB|BN|BYB)`, `BUY_PRES_CB × spread(BUY_PRES_BN)`), their exchange-wide ranks and the
134
+ venue-dislocation template's columns read a value for such a period where they read null.
135
+ - **A closed venue close is that period's close at any age.** It is the venue's last trade in the period, as the
136
+ venue's own candle closes, even when that trade was early in the period; a closed reading is never aged. A spread
137
+ against the perp's close can therefore compare two instants on a thin venue. A Developing (forming) venue close is
138
+ still absent once older than the coin's spot-tape target.
139
+ - **Unchanged:** the composite's flow, `SPOT_CVD`, `SPOT_AVG_TRADE` and `SPOT_DOMINANCE`. A period with a minute the
140
+ venue's feed and trade history both missed still has no venue bar.
141
+
142
+ ### Re-worded text — the spot close glosses
143
+
144
+ - **`SPOT_CLOSE_CB`, `SPOT_CLOSE_BN` and `SPOT_CLOSE_BYB`** state when the venue's period bar exists: its close is the
145
+ venue's last trade in the period, or the price it carried through every minute of a period with no trade; it is
146
+ absent where a minute of the period went unseen, or where the coin did not trade on the venue and its price was not
147
+ carried through every minute. Each names its venue's quote currency from BattleGrid's declared quote policy.
148
+
149
+ ### Digest move
150
+
151
+ - **`vocabularyDigest` and the authoring catalog digest move** with the three glosses. A client caching vocabulary
152
+ against either re-reads `list_strategy_vocabulary`.
101
153
 
102
154
  ## Contract history — v137 (TradingView's indicator math, Stoch RSI %K/%D, and a spread in points)
103
155
 
package/dist/index.d.ts CHANGED
@@ -47,7 +47,7 @@ import { Client, StreamableHTTPClientTransport } from '@modelcontextprotocol/cli
47
47
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
48
48
  * correction. Never move it to track the server.
49
49
  */
50
- export declare const PACKAGE_VERSION = "32.0.41";
50
+ export declare const PACKAGE_VERSION = "32.0.44";
51
51
  export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
52
52
  export interface EnvConfig {
53
53
  apiKeys: string[];
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ import { Client, SdkHttpError, StreamableHTTPClientTransport } from '@modelconte
49
49
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
50
50
  * correction. Never move it to track the server.
51
51
  */
52
- export const PACKAGE_VERSION = '32.0.41';
52
+ export const PACKAGE_VERSION = '32.0.44';
53
53
  export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
54
54
  const MAX_RETRIES = 3;
55
55
  const RETRY_DELAYS_MS = [2000, 4000, 8000];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battlegrid/mcp-server",
3
- "version": "32.0.41",
3
+ "version": "32.0.44",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "generator": "battlegrid-app/server/scripts/export-mcp-skills.mjs",
3
- "contractVersion": "137.2.0",
3
+ "contractVersion": "137.3.0",
4
4
  "files": {
5
5
  "battlegrid-agent-management/SKILL.md": "91d1be4de1e33d54e1852c970af66ad176068fd16c30b4326e49053b7a35eb32",
6
6
  "battlegrid-agent-management/references/agent-stage-examples.md": "dffcc353d61dfc7b5bb6a2b3077fc6bf8c760a34c287cafb3b59b99306f24195",