@battlegrid/mcp-server 31.2.88 → 31.2.93

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,68 @@ 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 — v107.1 (an arena entry is recorded before its fee moves)
28
+
29
+ **Additive at v107.1: a paid entry can be recorded while its fee confirms.** v107.1 is the contract on top
30
+ of v107. The server now records your entry first, then sends the fee, then settles the entry on the
31
+ venue's answer, so a fee can never move for an entry that was not recorded. No input changes.
32
+
33
+ ### Widened output
34
+
35
+ - **`submit_market_grid`, `random_submit_market_grid` and `submit_agent_grid` results gain
36
+ `entryStatus`**: `ENTERED`, or `PAYMENT_PENDING` when the entry is recorded and its fee is still
37
+ confirming at the venue. A payment-pending entry plays once its fee lands before lock; otherwise it is
38
+ released, and a fee that lands after that is refunded.
39
+ - **`entryState` gains `PAYMENT_PENDING`** on `get_my_market_grid_entry`. `list_my_market_grid_entries`
40
+ shares the element schema but never returns one.
41
+
42
+ ### Refusal vocabulary
43
+
44
+ - **`details.wagerErrorCode` gains `ACCOUNT_NOT_UNIFIED`** on the three submit tools: an entry fee is
45
+ paid only from a unified-collateral account (`unifiedAccount` or `portfolioMargin`).
46
+
47
+ ### Behaviour behind unchanged schemas
48
+
49
+ - **`check_market_grid_submission` answers `hasSubmitted: true`** for a payment-pending entry.
50
+ - **`update_market_grid` refuses a payment-pending entry** with `CONFLICT` until it is in play.
51
+
52
+ ## Contract history — v106 (the Opening Bell: a session starts at its scored candle's open)
53
+
54
+ **Breaking at v106: Two-Look entry is retired. A deployment slot drops `entryStrategy`, and a
55
+ deployment draft refuses one.** v106 is the contract on top of v105.5. Every automated entry now looks
56
+ once, inside the Opening Bell window: from `startsAt` (the open of the one candle a session scores)
57
+ until `lockAt` (entries close).
58
+
59
+ ### Reshaped output — something you read has moved or been removed
60
+
61
+ - **`entryStrategy` leaves every deployment slot**: `get_deployment_policy`, `list_deployment_policies`,
62
+ `get_deployment_policy_draft`, `pause_deployment_policy`, `delete_deployment_policy`,
63
+ `preview_deployment_resolution` and `test_generate_deployment_grid`.
64
+
65
+ ### Rejected input — something you send is no longer accepted
66
+
67
+ - **`stage_deployment_policy_draft` refuses `entryStrategy`** on a `RULES` rule and on the
68
+ `DEFAULT_SLOT`, as an unrecognized key. `preview_deployment_resolution`'s `SLOTS` subject and
69
+ `test_generate_deployment_grid` no longer publish the key, and they strip it if it is sent.
70
+
71
+ ### Widened output
72
+
73
+ - **Every Market Grid session surface gains `startsAt`**, the Opening Bell. That covers
74
+ `get_market_grid_session`, `list_market_grid_sessions`, `get_market_grid_results`, and a deployment's
75
+ target session and open entries. A Coin Grid summary's `startsAt` equals its `lockAt`.
76
+ - **`get_agent_prompt_context_preview`'s market context gains `startsAt` and
77
+ `millisecondsSinceOpeningBell`**, both nullable.
78
+
79
+ ### Behaviour behind unchanged schemas
80
+
81
+ - **`lockAt` keeps its name and now means "entries close"**, the end of the Opening Bell window, a
82
+ fixed fraction of the session's duration after `startsAt`. Read `startsAt` for when a session starts
83
+ or what it scores. Submitting, editing and cancelling stay open until `lockAt`.
84
+ - **`SESSION_START` rules match `startsAt`.**
85
+
86
+ A client that reads `entryStrategy` from a slot, or stages one into a deployment draft, breaks at v106,
87
+ which is why this is a MAJOR.
88
+
27
89
  ## Contract history — v103 (a column's contract carries its read size, measurement and series home)
28
90
 
29
91
  **Breaking at v103: a transform entry drops `sideRequired` and `operandRequired`, and
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.88";
52
+ export declare const PACKAGE_VERSION = "31.2.93";
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.88';
55
+ export const PACKAGE_VERSION = '31.2.93';
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.88",
3
+ "version": "31.2.93",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",