@battlegrid/mcp-server 32.0.21 → 32.0.22
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 +87 -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,93 @@ 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 — v129 (every record list takes one time window)
|
|
42
|
+
|
|
43
|
+
**Breaking at v129: `get_public_agent_realized_trades` renames its `timeframe` input to `window`, and sixteen list
|
|
44
|
+
tools accept the same window.** v129 is the contract on top of v128.1. No output moves. Reconnect the proxy, or
|
|
45
|
+
restart it, so discovery reads the new schemas.
|
|
46
|
+
|
|
47
|
+
### Rejected input — a key you sent is refused
|
|
48
|
+
|
|
49
|
+
- **`get_public_agent_realized_trades` no longer takes `timeframe`.** Send the same value as `window` (`1D`, `7D`,
|
|
50
|
+
`30D` or `LIFETIME`; default `LIFETIME`). The input is strict: a call that still sends `timeframe` is refused as
|
|
51
|
+
invalid arguments.
|
|
52
|
+
|
|
53
|
+
### Widened input — a window you can now ask for
|
|
54
|
+
|
|
55
|
+
- **One window on every record list paged by `cursor`:** `list_signal_logs`, `list_agent_trades`, `list_gate_blocks`,
|
|
56
|
+
`get_radar_activity`, `get_radar_close_decisions`, `get_public_agent_signal_logs`,
|
|
57
|
+
`get_public_agent_realized_trades`, `get_agent_thought_log`, `get_agent_activity_feed`,
|
|
58
|
+
`list_my_market_grid_entries`, and `list_strategy_drafts`, `list_agent_drafts`, `list_radar_deployment_drafts`,
|
|
59
|
+
`list_deployment_policy_drafts`, `list_officer_drafts` and `list_market_grid_entry_drafts`.
|
|
60
|
+
- **Either a trailing preset or explicit bounds, never both.** `window: '1D' | '7D' | '30D'` is the last 24 hours,
|
|
61
|
+
7 days or 30 days, measured by the server on every page you read. Or leave `window` at `LIFETIME` and send
|
|
62
|
+
`since` (inclusive) and/or `until` (exclusive), each an ISO-8601 date-time with an offset (`Z` or `±hh:mm`).
|
|
63
|
+
- **The window is over the instant the list is ordered by:** a signal log's or thought's creation, a trade's close,
|
|
64
|
+
a radar event's occurrence, a close decision's bar open, an entry's original submission, a draft's last update.
|
|
65
|
+
- **Refused before any read, naming the field:** `since` not strictly before `until` (names `since`); a preset other
|
|
66
|
+
than `LIFETIME` beside `since` or `until` (names `window`); a bound with no offset, or before year 0001 (names the
|
|
67
|
+
bound).
|
|
68
|
+
- **Summaries follow the window.** `list_agent_trades`' `summary` and `resultSummary`, `list_signal_logs`' `summary`,
|
|
69
|
+
`list_gate_blocks`' `summary` and `list_my_market_grid_entries`' facets cover the windowed scope, not all history.
|
|
70
|
+
- **Cursors are unchanged.** A `nextCursor` you already hold still pages. Read the next page with the same window;
|
|
71
|
+
a cursor read under a different window serves the rows after its key that lie inside the window you send now.
|
|
72
|
+
|
|
73
|
+
### Not windowed
|
|
74
|
+
|
|
75
|
+
`list_market_grid_sessions`, `list_officer_reviews`, the live-state reads (positions, open orders), catalogs,
|
|
76
|
+
rankings and bar series take no window; sending `window` to them is refused as an unknown input, as before.
|
|
77
|
+
|
|
78
|
+
## Contract history — v128.1 (a signal's debrief reads through MCP)
|
|
79
|
+
|
|
80
|
+
**Additive at v128.1: two read tools.** v128.1 is the contract on top of v128. Nothing a client sends
|
|
81
|
+
is refused and nothing it reads is reshaped.
|
|
82
|
+
|
|
83
|
+
### Added tools
|
|
84
|
+
|
|
85
|
+
- **`get_signal_debrief`** — `{ agentId, logId }`: the debrief of a signal log of your own agent.
|
|
86
|
+
- **`get_public_agent_signal_debrief`** — `{ agentId, logId }`: the same debrief for a signal log on an
|
|
87
|
+
agent's public profile.
|
|
88
|
+
|
|
89
|
+
Both answer `{ debrief }`, a `DecisionDebriefDTO` or `null`. The debrief's verdict is `null` until its
|
|
90
|
+
24-hour mark resolves; read again after that.
|
|
91
|
+
|
|
92
|
+
## Contract history — v128 (an agent's stop and take-profit move through the agent's own protection)
|
|
93
|
+
|
|
94
|
+
**Breaking at v128: `override_agent_protection` takes new input and returns a new answer, and two tools announce
|
|
95
|
+
that they are destructive and reach the exchange.** v128 is the contract on top of v127. Reconnect the proxy, or
|
|
96
|
+
restart it, so discovery reads the new schemas and annotations.
|
|
97
|
+
|
|
98
|
+
### Rejected input — a key you sent is refused
|
|
99
|
+
|
|
100
|
+
- **`override_agent_protection` no longer takes `effectiveStopLoss` or `effectiveStopLossOrderId`.** Send
|
|
101
|
+
`{ decisionId, stopLossPrice?, takeProfitPrice? }` — each price a positive decimal string, at least one of the two.
|
|
102
|
+
The input is strict: a call that still sends `effectiveStopLossOrderId` is refused as invalid arguments. You name
|
|
103
|
+
levels, never orders; the server finds the live leg itself.
|
|
104
|
+
- **A level the live mark has already crossed is refused** — a stop must sit on the loss side of the mark and a
|
|
105
|
+
take-profit on its profit side. Read `decisionId`, `effectiveStopLoss` and `effectiveTakeProfit` from
|
|
106
|
+
`list_user_active_positions` or `get_agent_decision_context`. To exit now, call `close_agent_position`.
|
|
107
|
+
|
|
108
|
+
### Reshaped output — the answer you read changed
|
|
109
|
+
|
|
110
|
+
- **`override_agent_protection` answers `{ decisionId, success, result }`.** `success` is true only when every leg you
|
|
111
|
+
asked to move committed. `result.kind` is one of:
|
|
112
|
+
- `level-crossed` — `{ leg, markPrice }`: that leg (`SL` or `TP`) would fill at once against the mark; nothing was
|
|
113
|
+
written;
|
|
114
|
+
- `mark-unavailable` — the live mark is stale or missing; nothing was written;
|
|
115
|
+
- `rate-limited` — `{ retryAfter }` seconds; nothing was written;
|
|
116
|
+
- `dispatched` — `{ stopLoss, takeProfit }`, each leg's own outcome (`null` for a leg you did not send).
|
|
117
|
+
- **Read each leg on its own.** Only `committed` moved the leg. A stop can come back `queued`: it is recorded and will
|
|
118
|
+
be placed as soon as the amendment in progress finishes. A take-profit with no resting leg is `execution-not-open`
|
|
119
|
+
with `observedStatus: "MISSING_TAKE_PROFIT"`. The never-produced `stale-order` outcome is gone. A committed stop is
|
|
120
|
+
never rolled back because the take-profit failed.
|
|
121
|
+
- **The take-profit moves too.** The tool used to move the stop only.
|
|
122
|
+
|
|
123
|
+
### Changed annotations
|
|
124
|
+
|
|
125
|
+
- `close_agent_position` and `override_agent_protection` declare `destructiveHint: true` and `openWorldHint: true`.
|
|
126
|
+
A client that asks before destructive or open-world calls now asks before both.
|
|
127
|
+
|
|
41
128
|
## Contract history — v127 (a read serves what its code computes, and says so)
|
|
42
129
|
|
|
43
130
|
**Breaking at v127: two answers narrow for calls you could already make, and every radar journal row gains one
|
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.22";
|
|
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.22';
|
|
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];
|