@battlegrid/mcp-server 32.0.100 → 32.0.104

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.104";
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.104';
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.104",
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": "180.2.0",
3
+ "contractVersion": "180.4.0",
4
4
  "files": {
5
5
  "battlegrid-agent-management/SKILL.md": "f0dde6b2f3dfbb340cd9bf785dc514f8f6c36cb1118be75df17016de0980ef56",
6
6
  "battlegrid-agent-management/references/agent-stage-examples.md": "dffcc353d61dfc7b5bb6a2b3077fc6bf8c760a34c287cafb3b59b99306f24195",
@@ -16,10 +16,10 @@
16
16
  "battlegrid-strategy-authoring/SKILL.md": "123acc93c01c16789c2568f8f3050ea58c8a5e693d7df1a811aa87128d0746cb",
17
17
  "battlegrid-strategy-authoring/references/strategy-stage-examples.md": "0eb41edd013f95092f5822a922c7cdd731584892ed90da575dbb65c93a1a00b6",
18
18
  "battlegrid-strategy-doctor/SKILL.md": "aa8c7b9b8dde043c1e3d027c2b370979ea18b45e0f7757e77164bd0fffbe8236",
19
- "battlegrid-strategy-examples/SKILL.md": "6ff6df1e3778619f708575875a1ae2ae3d9f4474ae34b998e2c4b8b207f60961",
19
+ "battlegrid-strategy-examples/SKILL.md": "c8448bd243ef57dfe0c81292c40787e8e6cb1bc6cd18aecbe2ed349611df1ab0",
20
20
  "battlegrid-strategy-examples/references/playbooks.md": "a08e5dd43a2fd3ff7b9eac7833331464edf6a533845824b80953e1e24422c48c",
21
21
  "battlegrid-strategy-examples/references/recipes.md": "e24483ec52cbcedba08ed6fa7f2a28b0fde170b2d4b1876162d180538cd789f2",
22
- "battlegrid-strategy-examples/references/tradingview-ports.md": "5d65b5299ddfddd80f413a0301de25861607aeb0840b89416c3f0603a4b7cb37",
22
+ "battlegrid-strategy-examples/references/tradingview-ports.md": "8eddbe31d445080cf772c357f0608c912b620583c7bc62de71ddaf98c10c8820",
23
23
  "battlegrid-trade-analysis/SKILL.md": "67230a08ecd96aed560ea1730a7782da7f95fa6e38f7fd43d723b50e42d2b5ca",
24
24
  "battlegrid-trade-proposal/SKILL.md": "c28436db3ae062081716d9f6e0a7d4ec99273c58423416a0cf3c17d86bd030a7"
25
25
  }
@@ -66,8 +66,8 @@ includes the bar measured, so a close can never pass it. The offset belongs to t
66
66
  never to a chain outer.
67
67
 
68
68
  **Timeframe references are two families.** *Relative* (`anchor`/`lower`/`regime`) re-resolve
69
- when the strategy timeframe changes — `regime` is the anchor's ladder successor (1d for a 4h
70
- anchor). *Pinned* (`{abs: "<tf>"}`) is fixed, ignores anchor retunes, suffixes the literal
69
+ when the strategy timeframe changes — `regime` is the anchor's regime rung, the shortest enabled timeframe at least three times
70
+ the anchor (12h for a 4h anchor, 2h for a 30m anchor). *Pinned* (`{abs: "<tf>"}`) is fixed, ignores anchor retunes, suffixes the literal
71
71
  (`RSI14_1d`, `dist_SMA200_1d`, `MAalign_1d` — validated), and binds to discovery's
72
72
  `rankedTimeframes`, a **superset** of the authorable anchor set — `{abs: "1d"}` is valid while
73
73
  `1d` is not an anchor. `offset` steps back inside the bar set the Read selector admits, counted
@@ -95,6 +95,14 @@ rules about the columns themselves, not about porting — they live in the skill
95
95
  day's opening ranges (`OR15_HIGH`/`OR15_LOW`, `OR30_HIGH`/`OR30_LOW`) and the IB extensions
96
96
  (`IB_EXT_UP_150` … `IB_EXT_DOWN_200`). A session window (`TRADING_SESSION in ["london","newYork"]`,
97
97
  `DAY_OF_WEEK between 1 and 5`) is an ordinary condition; the glosses state the windows.
98
+ - **The week's or day's high so far — `wkHigh[1]` / `dayHigh[1]`** → native as `WEEK_HIGH` / `WEEK_LOW` (the week
99
+ from Monday 00:00 UTC) and `DAY_HIGH` / `DAY_LOW` (the UTC day), on the strategy's anchor rung. A verb over one
100
+ reads the level as it stood at the previous strategy bar's close, which is Pine's
101
+ `inForce = timeframe.change("W") ? na : wkHigh[1]`: a BREAK of the week high is `dist_weekHi crossesAbove 0`
102
+ (`ta.crossover(close, inForce)`), a close at a new week high is `dist_weekHi gt 0`, and `WEEK_HIGH ×
103
+ levelInteraction` reads TOUCH / REJECT. Monday's first hour has no level in force, so a verb there is unreadable,
104
+ and a crossing is unreadable on the second hour too. Last week's high is `PWH`. `HIGH @1d` / `@1w` Developing is a
105
+ different read: the forming candle at its own rung, not a level met per strategy bar.
98
106
  - **ICT / SMC (FVG + order blocks)** → `STRUCT_ZONES` is the native zone engine:
99
107
  `zones_htf_support_type` (`bullish FVG`/`bullish order block`), `zones_htf_support_dist
100
108
  between 0 1.5`, `_age_bars gte 3`, HTF bias required via `MAalign_htf`. A killzone is a session window