@battlegrid/mcp-server 32.0.82 → 32.0.83

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
@@ -63,6 +63,32 @@ Seeing package `31.x` alongside handshake `battlegrid@33.x` — the package **be
63
63
  it beside the grid. Before lock, no other player can read an entry's picks or reasoning, and the lobby's per-coin
64
64
  crowd split stays empty for an open session.
65
65
 
66
+ ## Contract history — v150 (Cost Economics is one scoped section: account, team or agent, over a period)
67
+
68
+ **v150 is MAJOR: one published tool now requires an input it did not, and its output is reshaped.** One tool is added.
69
+
70
+ ### Refused input — one reason v150 is MAJOR
71
+
72
+ - **`get_agent_cost_economics` requires `period`** beside `agentId`: one of `24H`, `7D`, `30D` or `LIFETIME`, the
73
+ trailing span ending at the read. It used to read a fixed 90-day window. A call naming only `agentId` is refused
74
+ as `VALIDATION_ERROR`. Pass a period; `30D` is the longest span inside the old window.
75
+
76
+ ### Reshaped output — the other reason v150 is MAJOR
77
+
78
+ - **`get_agent_cost_economics`' `economics` is the scoped-section envelope.** It carries `scope`
79
+ (`{ kind: 'AGENT', agentId }`), `window` (`period`, ISO `startAt` — `null` for `LIFETIME` — and `endAt`), `groupBy`,
80
+ `pooled`, `members` and `quietMemberCount`. The `rows`, `totals` and `costErodedCount` that sat at the top of
81
+ `economics` now sit under `economics.pooled`. `windowDays` is replaced by `window`. `unreconciledCount` is removed:
82
+ a closed position can no longer lack its money, so every close in the window is counted in its outcome's row.
83
+
84
+ ### Added tools
85
+
86
+ - **`get_cost_economics_breakdown`** serves the same envelope for your whole account, or for one of your teams when
87
+ `teamId` is given, over a required `period`. `groupBy` may be `TEAM` or `AGENT` for the account and `AGENT` for a
88
+ team; anything else is refused as `VALIDATION_ERROR`. `members` lists each member with a close in the window, each
89
+ with its own figures in the pooled shape, and `quietMemberCount` counts the members that had none. A team that is
90
+ not yours answers not found.
91
+
66
92
  ## Contract history — v146.14 (market-structure pivots are LuxAlgo's `leg()` exactly)
67
93
 
68
94
  **Nothing refused at v146.14 that v146.13 accepted at the shipped lookback cap.** One MINOR moves served values and
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.82";
50
+ export declare const PACKAGE_VERSION = "32.0.83";
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.82';
52
+ export const PACKAGE_VERSION = '32.0.83';
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.82",
3
+ "version": "32.0.83",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",