@battlegrid/mcp-server 32.0.89 → 32.0.91
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 +22 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,6 +38,28 @@ 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 — v169 (one exact rule for realized net; the hub's per-agent average is gone)
|
|
42
|
+
|
|
43
|
+
**v169 is MAJOR: one published output loses a field.** No input moves, and nothing v168 accepted is refused.
|
|
44
|
+
|
|
45
|
+
### Removed output — the reason v169 is MAJOR
|
|
46
|
+
|
|
47
|
+
- **`get_agents_hub` no longer serves `summary.avgPnlPerAgentUsd`.** It was a lifetime average per agent, rounded
|
|
48
|
+
differently from the fleet's. Read `get_agents_portfolio_pnl`'s `avgRealizedNetPnlPerAgentUsd`, the one per-agent
|
|
49
|
+
average, over the period you ask for.
|
|
50
|
+
|
|
51
|
+
### Changed values — the same schemas serve exact values
|
|
52
|
+
|
|
53
|
+
Realized trade money is now summed by one rule: exact at the persisted 8-decimal scale, never rounded to the cent on
|
|
54
|
+
the server. Round to the cent yourself when you display it.
|
|
55
|
+
|
|
56
|
+
- **`get_agents_hub`'s `summary.totalRealizedNetPnl`** — the roster's lifetime realized net, now described as
|
|
57
|
+
all-time. Rows of `-100` and `30.555` used to total `-69.44`; they now total `-69.445`.
|
|
58
|
+
- **`get_agents_portfolio_pnl`'s `realizedNetPnlUsd`, `avgRealizedNetPnlPerAgentUsd` and every `agentTrades[]`
|
|
59
|
+
`realizedNetPnlUsd`** — they served whole cents and now serve the exact values. The fleet's `LIFETIME` realized net
|
|
60
|
+
equals `get_cost_economics_breakdown`'s `ACCOUNT` pooled `netPnl` at `LIFETIME`. An agent's figure may print one
|
|
61
|
+
cent from the others' total, and from its own `agents[]` `pnlUsd` when it sits exactly on a half cent.
|
|
62
|
+
|
|
41
63
|
## Contract history — v156 (a crowd reading no bar can serve is not a condition; trades name their config version)
|
|
42
64
|
|
|
43
65
|
**v156 is MAJOR: writes v155.1 accepted are refused, and one published result narrows.** No input schema moves.
|
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.91";
|
|
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.91';
|
|
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];
|