@battlegrid/mcp-server 32.0.100 → 32.0.103

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,37 @@ 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 — v181 (price is the base of every spread over another reading)
42
+
43
+ **v181 is MAJOR: a spread that takes a reference price as its second side over another reading is refused.** No
44
+ schema moves, and every other column is accepted as v180 accepted it.
45
+
46
+ `spread` computes `base − operand`, so the base decides the sign. Price compared with another reading is now always
47
+ the base, so "price above the level" reads positive in every such column, and one question has one stored form.
48
+
49
+ ### Rejected input — the reason v181 is MAJOR
50
+
51
+ - **A reference price is never the plain operand of a spread whose base is not one.** `EMA20 × spread(CLOSE)`,
52
+ `PRIOR_TPO_VAH × spread(CLOSE)`, `EMA20 × spread(LAST)` and `HL2 × ema(34) × spread(CLOSE)` are refused with
53
+ `VALIDATION_ERROR` / `REPORT_COLUMN_OPERAND_UNSUPPORTED` on every surface that builds a report column.
54
+ - **The refusal names the form to write, where the server admits it at the column's rung:** `CLOSE × spread(EMA20)`,
55
+ `LAST × spread(EMA20)`, or `CLOSE × spread({ metric: HL2, transformId: ema, window: 34 })`. Where no such form is
56
+ admitted (a session-profile level off the anchor rung, or `LAST` off the anchor), it names none.
57
+ - **Still accepted:** `CLOSE × spread(LAST)` and `LAST × spread(CLOSE)` (two reference prices keep both orders), and an
58
+ average of price as an operand (`{ metric: CLOSE, transformId: ema, window: 34 }`).
59
+
60
+ ### Narrowed output
61
+
62
+ - **`get_metric_construction_hints`' plain spread operand lists drop `CLOSE` and `LAST`** for every base that is not
63
+ a reference price: `spreadOperands`, `spreadOperandsOffAnchor`, and each chained `spread` outer's `operands`. The
64
+ averaged lists (`spreadAverageOperands*`) are unchanged.
65
+
66
+ ### Moved stored columns
67
+
68
+ - **The stored `PRIOR_TPO_{VAH,POC,VAL} × spread(CLOSE)` columns are now `CLOSE × spread(PRIOR_TPO_*)`**, headed
69
+ `close_pTpo{VAH,POC,VAL}_spread`. The conditions that read them flipped their operator and mapped their threshold, so
70
+ they pass on the same bars. A condition naming `pTpo{VAH,POC,VAL}_close_spread` is refused as an unknown header.
71
+
41
72
  ## Contract history — v179 (radar tools name a coin by its ticker)
42
73
 
43
74
  **v179 is MAJOR: fifteen radar tools rename the input that names a coin, and two reshape their result.** Nothing else
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.100";
50
+ export declare const PACKAGE_VERSION = "32.0.103";
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.100';
52
+ export const PACKAGE_VERSION = '32.0.103';
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.100",
3
+ "version": "32.0.103",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",