@battlegrid/mcp-server 31.2.100 → 31.2.102

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
@@ -24,6 +24,30 @@ Seeing package `31.x` alongside handshake `battlegrid@33.x` — the package **be
24
24
 
25
25
  **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.
26
26
 
27
+ ## Contract history — v110.6 (the Donchian channel as of the bar before)
28
+
29
+ **Additive at v110.6: two Donchian metric keys, and level-interaction labels judged against the level in
30
+ force when the bar opened.** v110.6 is the contract on top of v110.5. Nothing you send is refused.
31
+
32
+ ### Widened enum — something new you can send
33
+
34
+ - **`DONCHIAN_UPPER_PRIOR` and `DONCHIAN_LOWER_PRIOR`** (codes `donchianHiPrior`, `donchianLoPrior`)
35
+ in every tool that takes a column (`stage_strategy_draft`, `preview_strategy_report`,
36
+ `get_strategy_column_contract`, `get_metric_construction_hints`): the 20-bar channel edges as of the
37
+ bar before, Pine's `ta.highest(high, 20)[1]` and `ta.lowest(low, 20)[1]`. The close-based Donchian
38
+ breakout is `dist_donchianHiPrior crossesAbove 0`; the state "close above the prior 20-bar high" is
39
+ `dist_donchianHiPrior gt 0`; a failed breakout is `donchianHiPrior_lvl is reject_from_below`. They take
40
+ `levelInteraction` and not the cross-coin `rank`. Their history begins when the server deployed them.
41
+
42
+ ### Behaviour behind unchanged schemas
43
+
44
+ - **`levelInteraction` decides the side and the break against the level in force when the bar opened**:
45
+ the bar's own reading for a level fixed before the bar, the previous bar's reading for a level computed
46
+ from its own bar. Labels move on `DONCHIAN_BROKEN_HI`, `DONCHIAN_BROKEN_LO`, `SWING_FRACTAL_HIGH`,
47
+ `SWING_FRACTAL_LOW`, `ICHI_SPAN_A`, `ICHI_SPAN_B` and `ICHI_LAG`, only on bars where the level stepped
48
+ across the prior close and on the bar a level first appears (null becomes a label). No other level's
49
+ label moves. The transform's `formula` and `nullBehavior` text say so.
50
+
27
51
  ## Contract history — v110 (a metric names the one line it reads)
28
52
 
29
53
  **Breaking at v110: the metric keys `MACD`, `PPO` and `KC_MID` are refused.** v110 is the contract on
package/dist/index.d.ts CHANGED
@@ -49,7 +49,7 @@ import { type Implementation, type Prompt, type Resource } from '@modelcontextpr
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 declare const PACKAGE_VERSION = "31.2.100";
52
+ export declare const PACKAGE_VERSION = "31.2.102";
53
53
  export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
54
54
  export interface EnvConfig {
55
55
  apiKeys: string[];
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema, ListPromptsRequestSchema
52
52
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
53
53
  * correction. Never move it to track the server.
54
54
  */
55
- export const PACKAGE_VERSION = '31.2.100';
55
+ export const PACKAGE_VERSION = '31.2.102';
56
56
  export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
57
57
  const MAX_RETRIES = 3;
58
58
  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": "31.2.100",
3
+ "version": "31.2.102",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",