@battlegrid/mcp-server 31.2.97 → 31.2.98

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 — v109 (a player's picks are entered through their entry draft)
28
+
29
+ **Breaking at v109: `submit_market_grid` and `update_market_grid` are removed.** v109 is the contract on
30
+ top of v108. A player's picks for a session live in their Market Grid entry draft — the same draft their
31
+ builder on the session page writes as they pick — and an entry is placed or changed by committing it.
32
+
33
+ ### Rejected input — something you send is no longer accepted
34
+
35
+ - **`submit_market_grid` and `update_market_grid`** leave discovery with no alias. A call gets the
36
+ standard unknown-tool refusal. Play is stage → get → commit:
37
+ `stage_market_grid_entry_draft({ request: { sessionId, draftVersion, axes } })` with one
38
+ `CELL_n: { cell: { coinId, prediction } }` per grid position (`CELL_0` is the captain) and a
39
+ `RATIONALE` carrying the reasoning, confidence, model name and per-cell pick reasoning the removed
40
+ tools required; `get_market_grid_entry_draft` for the diff, diagnostics and impact; then
41
+ `commit_market_grid_entry_draft({ request: { sessionId, draftVersion, expectedRevision } })` on the
42
+ player's word. `random_submit_market_grid` and `submit_agent_grid` are unchanged.
43
+
44
+ ### Added tools
45
+
46
+ - **`get_market_grid_entry_draft`, `stage_market_grid_entry_draft`, `discard_market_grid_entry_draft`
47
+ and `list_market_grid_entry_drafts`** (`mcp:read`) read and stage the player's picks for free: no
48
+ entry, fee, deposit or LLM access. **`commit_market_grid_entry_draft`** (`mcp:wager`) enters a session
49
+ the player has not entered, charging the session's entry fee (the read's `impact.entryFee`), or
50
+ replaces a live entry's picks for no fee.
51
+
52
+ ### Refusal vocabulary
53
+
54
+ - **An entry that already exists is a revision `CONFLICT`** naming the live entry's revision, with
55
+ `nextAct: get_draft`: read the draft again and commit over the revision it returns.
56
+
27
57
  ## Contract history — v108 (conditions are the only entry gate; signal rules are removed)
28
58
 
29
59
  **Breaking at v108: signal rules, the aggregate-score gate and the required-count gate are removed.**
package/SKILL.md CHANGED
@@ -85,7 +85,8 @@ as a rebind. **`battlegrid-radar-deployment`** carries putting an agent on stand
85
85
 
86
86
  Predict UP or DOWN for each coin in the pool; exactly one coin is your **Captain** (2x score
87
87
  multiplier). **The arc lives in `battlegrid-arena-play`** — activate it to find a session, read its
88
- market context, compose a grid with real per-coin reasoning, submit it, and read the results.
88
+ market context, stage picks with real per-coin reasoning into the player's entry draft (the same draft
89
+ their builder writes), read it back, commit it on the player's word, and read the results.
89
90
  **`battlegrid-market-analysis`** carries the market read that informs the picks, and
90
91
  **`battlegrid-trade-analysis`** carries reading back how you have done.
91
92
 
@@ -93,7 +94,7 @@ The `play-market-grid` prompt (discover via `prompts/list`) provides a guided en
93
94
 
94
95
  ## Retired operations
95
96
 
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`), and the direct agent writers (`create_intelligence_agent`, `update_intelligence_agent`, `rebind_intelligence_agent`) 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, and a strategy binding is the agent draft's `STRATEGY_BINDING` axis. 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.
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.
97
98
 
98
99
  ## Common errors
99
100
 
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.97";
52
+ export declare const PACKAGE_VERSION = "31.2.98";
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.97';
55
+ export const PACKAGE_VERSION = '31.2.98';
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.97",
3
+ "version": "31.2.98",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",