@battlegrid/mcp-server 32.0.81 → 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 +29 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,11 +38,11 @@ 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 —
|
|
41
|
+
## Contract history — v151 (an arena entry is sealed until lock; from lock its author and reasoning are public)
|
|
42
42
|
|
|
43
|
-
**
|
|
43
|
+
**v151 is MAJOR: one published output drops three fields.** Nothing a client sends is refused that v150 accepted.
|
|
44
44
|
|
|
45
|
-
### Reshaped output — the reason
|
|
45
|
+
### Reshaped output — the reason v151 is MAJOR
|
|
46
46
|
|
|
47
47
|
- **`get_market_grid_player_grid` names the entry's author and carries its author's reasoning.** It drops
|
|
48
48
|
`agentConfidence`, `agentConfidencePercent` and `agentReasoning`, and gains `entrySource` (who authored the current
|
|
@@ -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.
|
|
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.
|
|
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];
|