@battlegrid/mcp-server 31.2.85 → 31.2.86
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 +31 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,37 @@ 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 — v102 (your entry history's facets come with the first page)
|
|
28
|
+
|
|
29
|
+
**Breaking at v102: `list_my_market_grid_entries` moves its counts, summary and agent options under one
|
|
30
|
+
`facets` object, sent with the first page only, and every entry gains a payout state.** v102 is the
|
|
31
|
+
contract on top of v101.1.
|
|
32
|
+
|
|
33
|
+
### Reshaped output — something you read has moved or been added
|
|
34
|
+
|
|
35
|
+
- **`outcomeCounts`, `summary` and `agentOptions` move under `facets`**, unchanged inside it:
|
|
36
|
+
`facets.outcomeCounts`, `facets.summary`, `facets.agentOptions`.
|
|
37
|
+
- **`facets` comes with the first page only.** A page you read with a `cursor` carries `facets: null`.
|
|
38
|
+
Keep the first page's facets for the whole scroll: every page of one read shares the same filters, so
|
|
39
|
+
the first page's counts, summary and agent options describe all of them.
|
|
40
|
+
- **Every entry gains `payoutState`**, in `list_my_market_grid_entries` and `get_my_market_grid_entry`:
|
|
41
|
+
`RECORDED` once settlement has recorded both of the entry's payouts, `UNDER_REVIEW` if it left one
|
|
42
|
+
unrecorded, and `null` while the entry is in play or cancelled.
|
|
43
|
+
- **`facets.summary` gains `payoutsUnderReviewCount`**: how many settled entries the money figures leave
|
|
44
|
+
out because their payout is under review.
|
|
45
|
+
|
|
46
|
+
### Behaviour behind unchanged schemas
|
|
47
|
+
|
|
48
|
+
- **An entry under review has `netPnl: null`.** It is listed under `PLAYED` only, never under `PAID` or
|
|
49
|
+
`NOT_PAID`, and the summary leaves both its fee and its payout out of every money figure, so the totals
|
|
50
|
+
stay consistent. Today no entry is under review: the entries settled before settlement recorded both
|
|
51
|
+
payouts now record `0` for the payout they never received, so their net reads the same as before.
|
|
52
|
+
- The five filters (`window`, `outcome`, `source`, `agentId`, `cursor`) accept exactly what they
|
|
53
|
+
accepted before. Only the `agentId` description changes: it now points at `facets.agentOptions`.
|
|
54
|
+
|
|
55
|
+
A client that reads `outcomeCounts`, `summary` or `agentOptions` at the top level, expects them on every
|
|
56
|
+
page, or rejects unknown entry fields, breaks at v102 — hence the MAJOR.
|
|
57
|
+
|
|
27
58
|
## Contract history — v101.1 (swing highs, swing lows and the structure label)
|
|
28
59
|
|
|
29
60
|
**Additive at v101.1: the catalog gains three swing-structure metrics.** v101.1 is the contract on top of
|
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.
|
|
52
|
+
export declare const PACKAGE_VERSION = "31.2.86";
|
|
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.
|
|
55
|
+
export const PACKAGE_VERSION = '31.2.86';
|
|
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];
|