@battlegrid/mcp-server 31.2.105 → 31.2.108

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,36 @@ 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 — v111 (the draft tools take their arguments at the top level)
28
+
29
+ **Breaking at v111: every draft-lifecycle tool takes its id, `draftVersion` and payload as top-level
30
+ arguments.** v111 is the contract on top of v110.12. Reconnect the proxy, or restart it, so discovery
31
+ reads the new schemas.
32
+
33
+ ### Rejected input — something you send is no longer accepted
34
+
35
+ - **The `request` envelope on the twenty-five draft-lifecycle tools** — `stage_`, `get_`, `commit_` and
36
+ `discard_<kind>_draft`, and `list_<kind>_drafts`, for the agent, strategy, Arena deployment, radar deployment
37
+ and Market Grid entry kinds. The fields that sat under `request` — the kind's id (`agentId`, `strategyId`,
38
+ `presetId`, `coinId` or `sessionId`), `draftVersion`, `axes`, `expectedRevision` and `cursor` — are now the
39
+ tool's own top-level arguments. A call that still wraps them in `request` is refused as an unrecognised key
40
+ naming `request`; nothing translates it. A refusal's path into the payload loses its leading `request`.
41
+ - **A number sent as a string** stays refused at the new top level, as it was under `request`: a
42
+ `draftVersion` of `"0"` is refused naming `draftVersion`.
43
+
44
+ ### Behaviour behind unchanged schemas
45
+
46
+ - **`request` stays exactly where its payload is a union or a refinement**: `get_strategy_section_template`,
47
+ `preview_radar_resolution`, `preview_deployment_resolution` and `test_generate_deployment_grid`. A draft
48
+ preview's `draftVersion` stays inside their `request`. Their schemas do not move.
49
+ - **A retried commit replays across the cutover.** Its idempotency key is still the entity id and the
50
+ `draftVersion`, so a commit retried in the new shape returns the first commit's receipt.
51
+ - **On a multi-account proxy, `account` sits beside a draft tool's own arguments**, as it does beside every
52
+ other flat tool's. The proxy still strips only `account`.
53
+ - **Each `get_<kind>_draft` description states how long a `draftVersion` holds** — every write to the draft
54
+ moves it — and, for every kind but the strategy, the event that ends the kind's drafts: a Market Grid
55
+ session leaving PENDING, an agent's deletion, a deployment's un-deploy.
56
+
27
57
  ## Contract history — v110.9 (the price zone reads the channel of the bars before)
28
58
 
29
59
  **Served values move at v110.9; no schema moves.** v110.9 is the contract on top of v110.8. Nothing you send
package/SKILL.md CHANGED
@@ -9,7 +9,7 @@ BattleGrid is a real-time cryptocurrency prediction gaming and trading platform.
9
9
 
10
10
  ## The other nine skills
11
11
 
12
- This skill covers **connection**: how to reach BattleGrid, the request envelope, and what each scope
12
+ This skill covers **connection**: how to reach BattleGrid, the `account` argument, and what each scope
13
13
  grants. Everything about *using* the platform lives in the nine skills installed beside it, exported
14
14
  from BattleGrid's own server so they name exactly the tools you reach here:
15
15
 
@@ -32,14 +32,14 @@ to connect and to know which one to open.
32
32
 
33
33
  **Tools, prompts, and resources are discovered live from this MCP connection.** Always read the current `tools/list`, `prompts/list`, and `resources/list` before acting — a cached capability list is not authoritative after a server deployment. This skill teaches the workflows and the strict request contracts; it deliberately does not copy the server's tool catalog, metric/transform vocabulary, formulas, or default values. Discover those from the live tools (`list_strategy_categories`, `list_strategy_vocabulary`, `list_strategy_signals`, `get_strategy_signal_definition`, …). Never guess a metric, transform, parameter, template, signal, or enabled-timeframe fact.
34
34
 
35
- ## Single-account vs multi-account request shape
35
+ ## Single-account vs multi-account arguments
36
36
 
37
- The draft lifecycle tools — `stage_<kind>_draft`, `get_<kind>_draft`, `commit_<kind>_draft`, `discard_<kind>_draft` and `list_<kind>_drafts` for the `strategy` and `agent` kinds — and `get_strategy_section_template` use one strict server-owned envelope, `{ request: canonicalPayload }`.
37
+ Call every tool with the arguments its live `tools/list` schema publishes. This skill states no tool's arguments; the exported skills below carry each workflow's calls, and discovery is the authority.
38
38
 
39
- - **Single account:** call them as the server publishes them, e.g. `stage_strategy_draft({ request })`.
40
- - **Multiple accounts (proxy):** live discovery adds a sibling `account`, so the shape is exactly `{ account, request }`. Select the account in the outer field; keep `request` exactly as discovered. The proxy strips only `account` and forwards the unchanged `{ request }`.
39
+ - **Single account:** send exactly the published arguments.
40
+ - **Multiple accounts (proxy):** live discovery adds a required `account` beside each tool's own published arguments. Select the account there. The proxy strips only `account` and forwards every other argument unchanged — it never unwraps, moves or rebuilds one.
41
41
 
42
- Never put `account` inside `request`, and never flatten request fields beside it. Other tools keep whatever input shape live discovery reports for them.
42
+ Never put `account` inside another argument.
43
43
 
44
44
  ## Scopes
45
45
 
@@ -56,19 +56,18 @@ that arc.
56
56
  Four facts about transport, which are this skill's to state because they are about the wire rather
57
57
  than about authoring:
58
58
 
59
- - **The envelope is `{ request }`, or `{ account, request }` on a multi-account proxy** (see above).
60
- It applies to every draft lifecycle tool and to `get_strategy_section_template`.
59
+ - **A tool's arguments are what discovery publishes, plus `account` on a multi-account proxy** (see
60
+ above).
61
61
  - **Every change goes through the entity's draft** — an agent's, a strategy's, and an Arena or radar
62
- deployment's. `stage_<kind>_draft({ request: { <id>?, draftVersion, axes } })` writes proposed axes
63
- into the player's unsaved draft and commits nothing. For an agent or a strategy, omit the id to open a
64
- new create draft, whose minted id the response carries; a deployment draft is keyed by its `presetId`
65
- or `coinId`, which every call names.
66
- `get_<kind>_draft({ request: { <id> } })` returns the draft, its `draftVersion`, the live
67
- `committedRevision`, a per-axis `diff`, `diagnostics` and `impact`.
68
- - **A commit names exactly the two numbers that read returned.**
69
- `commit_<kind>_draft({ request: { <id>, draftVersion, expectedRevision } })` — `expectedRevision`
70
- is `null` for an entity not created yet. Commit only after the player has seen the diff and impact
71
- and said yes. `discard_<kind>_draft({ request: { <id>, draftVersion } })` is the same fence. The two
62
+ deployment's. `stage_<kind>_draft` writes proposed axes into the player's unsaved draft and commits
63
+ nothing. For an agent or a strategy, omit the id to open a new create draft, whose minted id the
64
+ response carries; a deployment draft is keyed by its `presetId` or `coinId`, which every call names.
65
+ `get_<kind>_draft` returns the draft, its `draftVersion`, the live `committedRevision`, a per-axis
66
+ `diff`, `diagnostics` and `impact`.
67
+ - **A commit names exactly the two numbers that read returned.** `commit_<kind>_draft` takes that
68
+ `draftVersion` and, as `expectedRevision`, that `committedRevision` — `null` for an entity not
69
+ created yet. Commit only after the player has seen the diff and impact and said yes.
70
+ `discard_<kind>_draft` is the same fence on the `draftVersion`. The two
72
71
  deployment commits arm wagers and require `mcp:wager`; a deployment's resume and delete name the
73
72
  `expectedPolicyId` and `expectedRevision` a `COMMITTED` preview returned.
74
73
  - **The proxy forwards numbers and `null` unchanged.** It never fills in a version, never retries a
@@ -94,7 +93,7 @@ The `play-market-grid` prompt (discover via `prompts/list`) provides a guided en
94
93
 
95
94
  ## Retired operations
96
95
 
97
- `create_strategy`, the plan tools (`compile_strategy_plan`, `stage_strategy_plan`, `apply_strategy_plan`), `update_strategy_signal_rule`, the signal-rule tools (`simulate_aggregate_score`, `list_strategy_signals`, `get_strategy_signal_definition`, `derive_strategy_rule_view`, `get_coin_signal_preview`), the direct agent writers (`create_intelligence_agent`, `update_intelligence_agent`, `rebind_intelligence_agent`), and the direct grid writers (`submit_market_grid`, `update_market_grid`) are **retired** — they are absent from discovery and cannot be invoked. Stage into the entity's draft, read it back, and commit the version you read; a strategy's entry gate is its conditions (a required or verdict-carrying condition — a strategy with none never trades, and its draft warns `NO_ENTRY_CONDITION`), its ATR floor `minAtrPct` is part of the `TRADE_LEVEL_POLICY` axis, a strategy binding is the agent draft's `STRATEGY_BINDING` axis, and a player's Market Grid picks are the entry draft's `CELL_n` and `RATIONALE` axes. A deployment preview's `previewToken`, and the `confirm` on a deployment commit, resume, delete or draft discard, are retired the same way: a strict input refuses either key. Do not attempt flat legacy payloads; the server enforces a closed-world request root and the proxy never reconstructs them.
96
+ `create_strategy`, the plan tools (`compile_strategy_plan`, `stage_strategy_plan`, `apply_strategy_plan`), `update_strategy_signal_rule`, the signal-rule tools (`simulate_aggregate_score`, `list_strategy_signals`, `get_strategy_signal_definition`, `derive_strategy_rule_view`, `get_coin_signal_preview`), the direct agent writers (`create_intelligence_agent`, `update_intelligence_agent`, `rebind_intelligence_agent`), and the direct grid writers (`submit_market_grid`, `update_market_grid`) are **retired** — they are absent from discovery and cannot be invoked. Stage into the entity's draft, read it back, and commit the version you read; a strategy's entry gate is its conditions (a required or verdict-carrying condition — a strategy with none never trades, and its draft warns `NO_ENTRY_CONDITION`), its ATR floor `minAtrPct` is part of the `TRADE_LEVEL_POLICY` axis, a strategy binding is the agent draft's `STRATEGY_BINDING` axis, and a player's Market Grid picks are the entry draft's `CELL_n` and `RATIONALE` axes. A deployment preview's `previewToken`, and the `confirm` on a deployment commit, resume, delete or draft discard, are retired the same way: a strict input refuses either key. Do not attempt a retired argument shape; the server's strict inputs refuse it, and the proxy never reconstructs one.
98
97
 
99
98
  ## Common errors
100
99
 
@@ -103,7 +102,7 @@ The `play-market-grid` prompt (discover via `prompts/list`) provides a guided en
103
102
  | `BATTLEGRID_API_KEY is required` | Missing API key | Set `BATTLEGRID_API_KEY` (or `BATTLEGRID_API_KEYS`) |
104
103
  | `API key must start with "bg_live_"` | Invalid key format | Generate a new key at battlegrid.trade → Profile → MCP |
105
104
  | Authentication failed (401/403) | Key revoked/rotated | Generate a new key and **restart** the proxy (keys read once at startup) |
106
- | `"account" parameter is required` | Multi-account call missing `account` | Add the outer `account`; keep `request` unchanged |
105
+ | `"account" parameter is required` | Multi-account call missing `account` | Add `account` beside the tool's own arguments; keep them unchanged |
107
106
  | `DRAFT_VERSION_MOVED` | The draft changed after you read it, or no draft is held (`details.draftVersion` null) | Call `get_<kind>_draft` again, show the player what it now holds, and commit only on their word |
108
107
  | `DRAFT_AXIS_CONTESTED` | The player changed `details.contestedAxes` in their open form after the version you staged against | Read the draft again and propose against what they now have |
109
108
  | `CONFLICT` on a commit | The live revision moved after the draft read | Read the draft again, show the player the new diff and impact, and commit at the new `committedRevision` only on their word |
package/dist/index.d.ts CHANGED
@@ -11,13 +11,12 @@
11
11
  * enum parameter is injected into every tool so the AI agent can choose
12
12
  * which account to act as. Tool calls are routed with the matching Bearer token.
13
13
  *
14
- * Strategy authoring (v3): the strategy-authoring tools publish one strict
15
- * server-owned outer object, `{ request: canonicalPayload }`. In multi-account
16
- * mode the proxy adds `account` only as a sibling of `request`, producing
17
- * exactly `{ account, request }`; on a call it strips only `account` and
18
- * forwards the unchanged `{ request }`. It never descends into or reconstructs
19
- * the nested request — the server owns every required field, bound, union
20
- * discriminator, and `additionalProperties:false` constraint.
14
+ * Every tool's input is the server's published schema. In multi-account mode
15
+ * the proxy adds `account` beside a tool's own top-level properties; on a call
16
+ * it strips only `account` and forwards every other argument unchanged. It
17
+ * never descends into or reconstructs an argument — the server owns every
18
+ * required field, bound, union discriminator, and `additionalProperties:false`
19
+ * constraint.
21
20
  *
22
21
  * Versions (two of them, describing two different things):
23
22
  * - PACKAGE_VERSION — this proxy's own code. Sent UPSTREAM as the client identity.
@@ -49,7 +48,7 @@ import { type Implementation, type Prompt, type Resource } from '@modelcontextpr
49
48
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
50
49
  * correction. Never move it to track the server.
51
50
  */
52
- export declare const PACKAGE_VERSION = "31.2.105";
51
+ export declare const PACKAGE_VERSION = "31.2.108";
53
52
  export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
54
53
  export interface EnvConfig {
55
54
  apiKeys: string[];
@@ -75,11 +74,9 @@ export interface ToolDefinition {
75
74
  }
76
75
  /**
77
76
  * Add a required `account` enum to every discovered tool, as a sibling of the
78
- * existing top-level properties. For the strict authoring tools whose schema is
79
- * `{ request: canonicalPayload }`, this produces exactly `{ account, request }`
80
- * with `required: ["account", "request"]`; the server-owned root
81
- * `additionalProperties:false` and the entire nested `request` (unions,
82
- * required fields, bounds) are preserved by reference, never rewritten.
77
+ * existing top-level properties. The server-owned root
78
+ * `additionalProperties:false` and every existing property (unions, required
79
+ * fields, bounds) are preserved by reference, never rewritten.
83
80
  */
84
81
  export declare function injectAccountParam(tools: ToolDefinition[], accountNames: string[]): ToolDefinition[];
85
82
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,QAAQ,EACd,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,WAAW,qCAAqC,CAAC;AAe9D,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAID,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,CA+B9E;AAID,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,eAAe,EAAE,CAAC,CA6C5B;AA+DD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAA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,SAAS,EAAE,cAAc,CAAC;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,CAwO/F"}
package/dist/index.js CHANGED
@@ -11,13 +11,12 @@
11
11
  * enum parameter is injected into every tool so the AI agent can choose
12
12
  * which account to act as. Tool calls are routed with the matching Bearer token.
13
13
  *
14
- * Strategy authoring (v3): the strategy-authoring tools publish one strict
15
- * server-owned outer object, `{ request: canonicalPayload }`. In multi-account
16
- * mode the proxy adds `account` only as a sibling of `request`, producing
17
- * exactly `{ account, request }`; on a call it strips only `account` and
18
- * forwards the unchanged `{ request }`. It never descends into or reconstructs
19
- * the nested request — the server owns every required field, bound, union
20
- * discriminator, and `additionalProperties:false` constraint.
14
+ * Every tool's input is the server's published schema. In multi-account mode
15
+ * the proxy adds `account` beside a tool's own top-level properties; on a call
16
+ * it strips only `account` and forwards every other argument unchanged. It
17
+ * never descends into or reconstructs an argument — the server owns every
18
+ * required field, bound, union discriminator, and `additionalProperties:false`
19
+ * constraint.
21
20
  *
22
21
  * Versions (two of them, describing two different things):
23
22
  * - PACKAGE_VERSION — this proxy's own code. Sent UPSTREAM as the client identity.
@@ -52,7 +51,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema, ListPromptsRequestSchema
52
51
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
53
52
  * correction. Never move it to track the server.
54
53
  */
55
- export const PACKAGE_VERSION = '31.2.105';
54
+ export const PACKAGE_VERSION = '31.2.108';
56
55
  export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
57
56
  const MAX_RETRIES = 3;
58
57
  const RETRY_DELAYS_MS = [2000, 4000, 8000];
@@ -175,11 +174,9 @@ async function connectWithRetry(client, transport, apiUrl, apiKey) {
175
174
  }
176
175
  /**
177
176
  * Add a required `account` enum to every discovered tool, as a sibling of the
178
- * existing top-level properties. For the strict authoring tools whose schema is
179
- * `{ request: canonicalPayload }`, this produces exactly `{ account, request }`
180
- * with `required: ["account", "request"]`; the server-owned root
181
- * `additionalProperties:false` and the entire nested `request` (unions,
182
- * required fields, bounds) are preserved by reference, never rewritten.
177
+ * existing top-level properties. The server-owned root
178
+ * `additionalProperties:false` and every existing property (unions, required
179
+ * fields, bounds) are preserved by reference, never rewritten.
183
180
  */
184
181
  export function injectAccountParam(tools, accountNames) {
185
182
  return tools.map(tool => ({
@@ -388,7 +385,7 @@ export async function createProxyServer(options) {
388
385
  };
389
386
  }
390
387
  targetKey = keyByAccount.get(selectedAccount);
391
- delete args.account; // Strip ONLY account before forwarding; request is forwarded unchanged
388
+ delete args.account; // Strip ONLY account before forwarding; every other argument is forwarded unchanged
392
389
  }
393
390
  const client = await getClientForKey(targetKey);
394
391
  return await client.callTool({
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,GAI1B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,WAAW,GAAG,kCAAkC,CAAC;AAC9D,MAAM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AAO,CAAC,YAAY,CAAC,MAAM,4BAA4B,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAC9G,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,mBAAmB,OAAO,CAAC,SAAS,WAAW,OAAO,CAAC,WAAW,aAAa,OAAO,CAAC,aAAa,cAAc,CACnH,CAAC;IACJ,CAAC,EACD,CAAC,KAAc,EAAE,EAAE;QACjB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,oCAAoC,OAAO,8CAA8C;YACzF,yCAAyC,CAC1C,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC;AAGD,kEAAkE;AAClE,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEzF,IAAI,iBAAiB,EAAE,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,KAAK,IAAI,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battlegrid/mcp-server",
3
- "version": "31.2.105",
3
+ "version": "31.2.108",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "generator": "battlegrid-app/server/scripts/export-mcp-skills.mjs",
3
- "contractVersion": "110.4.0",
3
+ "contractVersion": "110.10.0",
4
4
  "files": {
5
- "battlegrid-agent-management/SKILL.md": "34a868f8068df189ce13af47c23011aabcf6a1f07128da4d4706066628cfaa5f",
5
+ "battlegrid-agent-management/SKILL.md": "9dc151c32c3578d06e8895c6752d7a64959bff6a6681a01d62ab65e1ea1590d1",
6
6
  "battlegrid-agent-management/references/agent-stage-examples.md": "d47555906ce8dedf4c17422f8f5d60187f2d6b3c0af5d9545617a10a5bdb59a1",
7
7
  "battlegrid-arena-play/SKILL.md": "88534714cdbaa31344e1798b2b3f18836bf543f5610d118d76095d1a0dbea502",
8
8
  "battlegrid-arena-play/references/entry-stage-examples.md": "3bc62f9faca7b5529d51a9794e162333216acb23f0d7f644d5180b9cbc696fca",
@@ -10,13 +10,13 @@
10
10
  "battlegrid-radar-deployment/SKILL.md": "652325c4923d79b9c9b78026a5493bfaaedf01f600641511438a9c4bf497c0b1",
11
11
  "battlegrid-radar-deployment/references/arena-stage-examples.md": "f605aaa266a291ef1b6d02a0e8885ad5df2fea88c800be2b6625cd629cd741f2",
12
12
  "battlegrid-radar-deployment/references/radar-stage-examples.md": "1ddad4a11f021dd65234ee65cc12d7d1561fe9acfd61cb021f4352080d4cecd5",
13
- "battlegrid-strategy-authoring/SKILL.md": "098308e69093796db3bb0a6dab64031128aaffbc108117b72393595564581da1",
13
+ "battlegrid-strategy-authoring/SKILL.md": "5ce41e11d50658226230cfccb70a5c5f08e52755ef737c528d98872f239b3d4e",
14
14
  "battlegrid-strategy-authoring/references/strategy-stage-examples.md": "9822cc2bcc8975a3e436c2a960b10e03c95e6e6b4b04bc2206e0ac90688cab66",
15
15
  "battlegrid-strategy-doctor/SKILL.md": "e34e055b0cc9b355bc1adeb5d49d464eaa0756ca3f48dc89ca2ccdda94e1311f",
16
- "battlegrid-strategy-examples/SKILL.md": "375a85a38b21a356291d05af3668a57949f11ba49968a4a53f08dcc590228375",
16
+ "battlegrid-strategy-examples/SKILL.md": "597ddacdfc00955fcfd5a1afcc40b5ea72a0f658acbbebc8264afeecc46d2306",
17
17
  "battlegrid-strategy-examples/references/playbooks.md": "2309eb7e8324f563c5b1b51e05da931b37c542484135a2be749eff6ef78aa40f",
18
18
  "battlegrid-strategy-examples/references/recipes.md": "635e03d163100f6de37cda1f6cc12928d5d36aa0ea883bf44fc72f17cbf3e98e",
19
- "battlegrid-strategy-examples/references/tradingview-ports.md": "1b9440bd7180330fb77c8e245e852cbe0b5a9f7df3448233199ecd341565b2b6",
19
+ "battlegrid-strategy-examples/references/tradingview-ports.md": "9eaa926cbe8606c6a09f91007a0606042afbfdc50173a5b13ae9336d2e9e9b08",
20
20
  "battlegrid-trade-analysis/SKILL.md": "3f927b4f9796178526fa1673a2043c5f14358c39aa955de33192ea58641f18fb",
21
21
  "battlegrid-trade-proposal/SKILL.md": "e761fc6bddc0d1db79fcb90046d03a18439562c8658de726ec286830edd6369b"
22
22
  }
@@ -36,8 +36,8 @@ step named beside it before doing anything else.
36
36
  `list_strategies` and `get_strategy` are yours — the binding lookup is part of commissioning, and
37
37
  which strategy an agent is bound to is the agent's own STRATEGY_BINDING axis (step 4).
38
38
  `stage_strategy_draft`, `commit_strategy_draft`, `discard_strategy_draft`, `fork_strategy`,
39
- `archive_strategy` and `restore_strategy` are **not**, even though activating this skill makes them
40
- visible in the conversation.
39
+ `archive_strategy`, `restore_strategy`, `save_report_section` and `remove_saved_report_section` are
40
+ **not**, even though activating this skill makes them visible in the conversation.
41
41
 
42
42
  When the work is a strategy change, activate `strategy-authoring` and let its arc run — its
43
43
  evidence, spec-lock, stage-review and confirm rules bind from that point. Do not drive a strategy
@@ -103,6 +103,18 @@ anywhere; if the two ever disagree, you have created the exact ambiguity this st
103
103
  `list_strategy_categories` → `list_strategy_vocabulary` → `get_strategy_column_contract` and
104
104
  `get_strategy_section_template`.
105
105
 
106
+ The player's own saved sections are listed among the vocabulary's templates as `kind: "saved"`.
107
+ When the player names one, fetch it with `get_strategy_section_template` and place its title, note,
108
+ `benchmarkTicker` and columns in a new custom section — a copy, with no `sectionKey`.
109
+
110
+ **Keeping a section.** `save_report_section` keeps a custom section in the player's library: send its
111
+ title, note, `benchmarkTicker` and columns as `section`, dropping `kind` and `sectionKey`. Save only
112
+ when the player asks to keep one — offer it, never decide it. Before the save, say whether the
113
+ vocabulary already lists that title as `saved`; if it does, the save replaces that saved section's
114
+ note, subject and columns whole. `remove_saved_report_section` drops one by its `savedSectionId`:
115
+ before it, say the library entry goes with no other copy, and that strategies already carrying a
116
+ copy keep theirs. Each waits for the player's explicit confirming pick.
117
+
106
118
  Compose sections, columns and conditions **only** from vocabulary returned in this conversation. A
107
119
  field you remember from another strategy is not discovery.
108
120
 
@@ -351,9 +363,9 @@ the other verbs writes content.
351
363
  the restored revision. To change the content as it comes back, stage the change into the
352
364
  strategy's draft and commit it — that commit restores it, and its read says `operation: RESTORE`.
353
365
 
354
- **Your `ask_user` is the approval, and the server does not repeat it.** No strategy verb takes a
355
- confirmation flag. So never call `commit_strategy_draft`, `archive_strategy`, `restore_strategy` or
356
- `discard_strategy_draft` on a turn where the player has not made an explicit confirming pick —
366
+ **Your `ask_user` is the approval, and the server does not repeat it.** No verb here takes a
367
+ confirmation flag. So never call `commit_strategy_draft`, `archive_strategy`, `restore_strategy`,
368
+ `discard_strategy_draft`, `save_report_section` or `remove_saved_report_section` on a turn where the player has not made an explicit confirming pick —
357
369
  never because you judged the change safe. Free text typed while a confirmation is open is not
358
370
  consent: answer it, then present the same confirmation again. That covers words typed into the
359
371
  form's own answer box as well as words sent in chat — a confirming pick is one of the options you
@@ -153,6 +153,16 @@ Recipes — each one clause:
153
153
  - **Squeeze released** — `kcSqueeze exits "on"`, over a `KC_SQUEEZE` value column.
154
154
  - **New 20-bar high** — `donchianHi increased`, over a `DONCHIAN_UPPER` value column: the 20-bar
155
155
  upper channel rises exactly when the decided bar's high exceeds every high of the 20 bars before it.
156
+ - **Close above the prior 20-bar high (Donchian / Turtle breakout)** — `dist_donchianHiPrior crossesAbove 0`,
157
+ over a `DONCHIAN_UPPER_PRIOR × distance` column: Pine's `ta.crossover(close, ta.highest(high, 20)[1])`,
158
+ TRUE on the first close of a breakout run. `dist_donchianHiPrior gt 0` is Pine's
159
+ `close > ta.highest(high, 20)[1]` and holds on every close of the run. Mirror with
160
+ `dist_donchianLoPrior crossesBelow 0` / `lt 0` over `DONCHIAN_LOWER_PRIOR`.
161
+ - **Failed breakout of the prior 20-bar high** — `donchianHiPrior_lvl is "reject_from_below"`, over a
162
+ `DONCHIAN_UPPER_PRIOR × levelInteraction` column: the high pierced the prior 20-bar high and the close
163
+ came back under it. `dist_donchianHiPrior crossesBelow 0` is NOT "fell back into the channel": the rail
164
+ rises to each breakout bar's high, so it fires once on the first bar of a breakout run that does not
165
+ close above the raised rail — the run of new closing highs ended.
156
166
  - **RSI crossed above 50 within the last 3 closes** — `RSI14_now crossesAbove 50` holding
157
167
  `{ "atLeast": 1, "of": 3 }`.
158
168
 
@@ -371,9 +381,12 @@ column: it takes a timeframe reference and the Confirmed / Developing selector l
371
381
 
372
382
  **`levelInteraction` — what the bar did at a level.** It classifies the newest bar of the column as
373
383
  one of five labels: `touch_from_below`, `touch_from_above`, `reject_from_below`, `reject_from_above`,
374
- `none`. The side is where the PRIOR close stood against the PRIOR bar's level — from below when it
375
- closed at or under it — so a level that moved between the two bars is judged on the bar it stood at.
376
- From below: a bar that closes through the level is a break and reads `none`; a bar whose high
384
+ `none`. The side is where the PRIOR close stood against the level IN FORCE WHEN THE BAR OPENED — from
385
+ below when it closed at or under it. For a level computed from its own bar (a band, `VWAP`, a moving
386
+ average, `ST_LINE`, `PSAR`, the Ichimoku conversion and base lines) that is the prior bar's level, so a
387
+ level that moved between the two bars is judged on the bar it stood at; for a level whose price was fixed
388
+ before the bar (a prior-bar Donchian rail, the break memory, a swing level, the displaced Ichimoku lines, a
389
+ prior-session level or pivot) it is the bar's own level. From below: a bar that closes through the level is a break and reads `none`; a bar whose high
377
390
  reached the level and whose close came back under it is `reject_from_below`; a bar whose high came
378
391
  within the buffer of the level is `touch_from_below`. From above is the mirror on the low.
379
392
 
@@ -385,18 +398,22 @@ within the buffer of the level is `touch_from_below`. From above is the mirror o
385
398
  - **A break is a crossing, never a label.** The break of a level is `distance` over the same level
386
399
  crossing 0: `dist_bbUpper crossesAbove 0` from below, `crossesBelow 0` from above. On the strategy's
387
400
  own rung a `…_from_below` label never holds on a bar where `crossesAbove 0` holds.
388
- - **Which levels take it.** A candle-homed level — a band (`BB_UPPER`, `BB_LOWER`, `KC_UPPER`,
389
- `KC_LOWER`), `VWAP`, a moving average (`SMA20`, `EMA20`, …), `ST_LINE`, `PSAR`, the Donchian break
390
- memory (`DONCHIAN_BROKEN_HI`, `DONCHIAN_BROKEN_LO`), the
391
- Ichimoku lines, the swing levels (`SWING_FRACTAL_HIGH`, `SWING_FRACTAL_LOW`) — reads its own value at
392
- each of the two bars. A prior-session level or pivot (`PDH`,
393
- `PDL`, `PDO`, `PIVOT_P`, `PRIOR_TPO_POC`, …) has one reading for the session, used as both bars' level;
394
- a clause over it is a single read with no hold, because the session profile keeps no earlier
395
- reading. A developing-session level (`TPO_POC`, `TPO_VAH`, …) and the naked points of control move
396
- between bars with no earlier reading kept, so they are not offered it; neither are the Donchian
397
- rails (`DONCHIAN_UPPER`, `DONCHIAN_LOWER`), each the extreme of the window ending at the very bar it
398
- would classify, which a close can never pass. A price fact (`CLOSE`, `HLC3`, `MARK`) is refused: it
399
- is the price, not a level.
401
+ - **Which levels take it.**
402
+ - **Offered:** a candle-homed level — a band (`BB_UPPER`, `BB_LOWER`, `KC_UPPER`, `KC_LOWER`),
403
+ `VWAP`, a moving average (`SMA20`, `EMA20`, …), `ST_LINE`, `PSAR`, the prior-bar Donchian rails
404
+ (`DONCHIAN_UPPER_PRIOR`, `DONCHIAN_LOWER_PRIOR`), the Donchian break memory (`DONCHIAN_BROKEN_HI`,
405
+ `DONCHIAN_BROKEN_LO`), the Ichimoku lines, the swing levels (`SWING_FRACTAL_HIGH`,
406
+ `SWING_FRACTAL_LOW`) — reads its own value at each bar. A prior-session level or pivot (`PDH`, `PDL`,
407
+ `PDO`, `PIVOT_P`, `PRIOR_TPO_POC`, …) has one reading for the session; a clause over it is a single
408
+ read with no hold, because the session profile keeps no earlier reading. On `PSAR` a wick that
409
+ trades through the SAR flips it on that bar, so a rejection needs the low (high) to meet the SAR
410
+ exactly and a touch needs a buffer; its flip is `dist_PSAR crossesAbove 0` / `crossesBelow 0`.
411
+ - **Not offered:** a developing-session level (`TPO_POC`, `TPO_VAH`, …), the naked points of
412
+ control and the single prints (`TPO_SINGLE_PRINT_ABOVE`/`_BELOW`, `NAKED_SINGLE_PRINT_ABOVE`/`_BELOW`),
413
+ which move between bars with no earlier reading kept; and the same-bar Donchian rails
414
+ (`DONCHIAN_UPPER`, `DONCHIAN_LOWER`), each the extreme of the window ending at the very bar it would
415
+ classify, which a close can never pass — read `DONCHIAN_UPPER_PRIOR` / `DONCHIAN_LOWER_PRIOR`. A
416
+ price fact (`CLOSE`, `HLC3`, `MARK`) is refused: it is the price, not a level.
400
417
  - **A higher-rung level reads that rung's completed bar.** `bbUpper_htf_lvl` classifies the last
401
418
  completed regime-rung bar from its own high, low and close, never the strategy bar's price — so
402
419
  compose its break on the same rung, `dist_bbUpper_htf crossesAbove 0`.
@@ -479,8 +496,8 @@ its side replaces it.
479
496
  clause over it reads FALSE.
480
497
  - **A swing level does not remember a broken level.** Two to four bars after a break the level steps
481
498
  to the next swing, so a retest of the BROKEN level is not a swing-level read.
482
- - **The two levels take what every candle level takes** — `distance`, `spread`, `aggregate`,
483
- `trajectory`, `efficiency` and `levelInteraction` — and both rank across the board
499
+ - **The two levels take** `distance`, `spread`, `aggregate`, `trajectory`, `efficiency` and
500
+ `levelInteraction`, and both rank across the board
484
501
  (`dist_fractalHi_rank_near`: the coins closest to their own last swing high).
485
502
  - **The break is the crossing toward the level.** `dist_fractalHi crossesAbove 0` is a close through the
486
503
  last swing high and never fires when the level steps onto a new swing, because the bar that confirms
@@ -60,10 +60,15 @@ rules about the columns themselves, not about porting — they live in the skill
60
60
  - **VWAP reversion** → `dist_VWAP` band + `dist_VWAP_rank_far lte 5` for board-relative
61
61
  stretch; required `NOT [ADX_state in ["trending","extreme"]]` veto; scalp geometry +
62
62
  aggressive timeDecay (VWAP anchors daily at 00:00 UTC).
63
- - **Donchian / Turtle breakout** → `zone is "breakout high"` + `dist_donchianHi gte 0` +
64
- `RVOL gte 1.5`; turtle exits = trend preset (trail from
65
- 1R, giveback 50). Mirror with `"breakdown low"`. **Daily-breakout variant on any anchor:**
66
- pin the structure at 1d — `zone_1d is "breakout high"`, `dist_donchianHi_1d gte 0` (validated).
63
+ - **Donchian / Turtle breakout** (`close > ta.highest(high, 20)[1]`) → `dist_donchianHiPrior crossesAbove 0`
64
+ over `DONCHIAN_UPPER_PRIOR × distance` (the breakout bar; `dist_donchianHiPrior gt 0` holds on every
65
+ close of the run) + `RVOL gte 1.5`; turtle exits = trend preset (trail from 1R, giveback 50). Mirror with
66
+ `dist_donchianLoPrior crossesBelow 0`. The same-bar rail (`dist_donchianHi`) includes the breakout bar's
67
+ own high, so it can never confirm a close-based break — do not AND it in. `zone is "breakout high"` reads
68
+ the prior-bar rail: it is the label form of the `dist_donchianHiPrior gt 0` state, holds on every close of
69
+ the run, and adds nothing to the crossing; `"breakdown low"` mirrors it.
70
+ **Daily-breakout variant on any anchor:** pin the rail at 1d — `dist_donchianHiPrior_1d crossesAbove 0`
71
+ (`gt 0` for the held state).
67
72
  **Literal previous-day levels are native**: `dist_PDH gte 0` composes directly. They are TIMELESS
68
73
  and take `{rel: 'anchor'}` — see `## Header grammar` in the skill body.
69
74
  - **ICT / SMC (FVG + order blocks)** → `STRUCT_ZONES` is the native zone engine: