@battlegrid/mcp-server 32.0.48 → 32.0.50

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,46 @@ 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 — v138 (TradingView's defaults, TradingView's CVD, and which values TradingView publishes)
42
+
43
+ **Breaking at v138: one metric retired, one transform pairing refused, one metric added, catalog outputs widened, and
44
+ served values move.** v138 is the contract on top of v137.5. Reconnect the proxy, or restart it, so discovery reads the
45
+ new vocabulary.
46
+
47
+ ### Retired — the reason v138 is MAJOR
48
+
49
+ - **`BB_WIDTH` (header `BBwidth20`) is gone from every authoring input.** It was the Bollinger band spread in price
50
+ units, which TradingView does not publish. Use `BB_WIDTH_PCT` (`bbWidthPct`), TradingView's Bollinger BandWidth
51
+ `ta.bbw`. Every saved column, Market Read marker and doctrine mention was moved to it before deploy, so a stored
52
+ strategy needs no edit.
53
+
54
+ ### Refused behind unchanged schemas
55
+
56
+ - **`OBV` reads only its changes.** Its series is the running sum of each bar's OBV step from the first bar a column
57
+ reads, so its level is arbitrary. A transform that reads OBV's level (`value`, `rank`, `spread` and every other
58
+ transform outside the six below) is refused on it. `trajectory`, `zscore`, `stddev`, `linregSlope`, `pctl` and
59
+ `efficiency` remain, and their values equal TradingView's OBV changes over the same bars.
60
+
61
+ ### Added
62
+
63
+ - **`CUM_VOLUME_DELTA` (`cumVolDelta`): TradingView's Cumulative Volume Delta.** Each intrabar's volume is signed by
64
+ its close against its open, then against the previous intrabar's close, then the previous sign, and summed since
65
+ 00:00 UTC. Intrabars are 1m on minute and hour timeframes and 5m on 1d. Published at bar close only.
66
+ - **`CVD` and `SPOT_CVD` are relabelled as order flow** ("Order-flow CVD", "Order-flow spot CVD"). Their keys, codes
67
+ and values are unchanged.
68
+ - **`provenance` on every catalog metric** (`list_strategy_vocabulary`, `get_metric_construction_hints`): `tradingView`
69
+ where TradingView publishes the same value at its default settings, `battleGridDerived` where it does not. The
70
+ authoring-contract digest (`digestVersion` 2) lists `battleGridDerivedMetricKeys`.
71
+
72
+ ### Changed values — the same schema serves a different number (indicator math revision 6)
73
+
74
+ - **Keltner Channels (`kcUpper`, `kcLower`) are EMA 20 ± 2 × ATR 10**, TradingView's defaults. They were ± 1.5 × ATR 20.
75
+ The TTM squeeze (`kcSqueeze`) keeps its own 1.5 × ATR 20 channel and does not move.
76
+ - **The Stochastic (`K`, `D`) is (14, 1, 3)**: `K` is unsmoothed. It was (14, 3, 3).
77
+ - **The 1d regime OBV vote reads the day's own OBV change**, so `REGIME_MOM` and the bull and bear vote counts can move
78
+ on a 1d regime rung. The composite regime label does not.
79
+ - **Verified unchanged:** PPO, MACD, Supertrend and CMF already equal TradingView's defaults.
80
+
41
81
  ## Contract history — v137.5 (Stoch RSI reads 0 over every run of unchanged closes)
42
82
 
43
83
  **Changed values at v137.5, behind unchanged schemas.** v137.5 is the contract on top of v137.4. Nothing a client sends
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.48";
50
+ export declare const PACKAGE_VERSION = "32.0.50";
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.48';
52
+ export const PACKAGE_VERSION = '32.0.50';
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.48",
3
+ "version": "32.0.50",
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.5.0",
3
+ "contractVersion": "138.0.0",
4
4
  "files": {
5
5
  "battlegrid-agent-management/SKILL.md": "91d1be4de1e33d54e1852c970af66ad176068fd16c30b4326e49053b7a35eb32",
6
6
  "battlegrid-agent-management/references/agent-stage-examples.md": "dffcc353d61dfc7b5bb6a2b3077fc6bf8c760a34c287cafb3b59b99306f24195",