@battlegrid/mcp-server 32.0.19 → 32.0.21
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 +201 -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,207 @@ 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 — v127 (a read serves what its code computes, and says so)
|
|
42
|
+
|
|
43
|
+
**Breaking at v127: two answers narrow for calls you could already make, and every radar journal row gains one
|
|
44
|
+
field.** v127 is the contract on top of v126. No input you could send is refused. Reconnect the proxy, or restart it,
|
|
45
|
+
so discovery reads the new descriptions and schemas.
|
|
46
|
+
|
|
47
|
+
### Narrowed answer — a call you made now returns less
|
|
48
|
+
|
|
49
|
+
- **`get_trade_chart` and `get_public_agent_trade_chart` return `UNAVAILABLE` for a CLOSED trade with no stored
|
|
50
|
+
chart.** A read used to capture the chart on the spot and answer `READY`; it no longer writes anything or fetches
|
|
51
|
+
candles. The chart is captured once, by a background job after the trade closes (it retries for about two and a
|
|
52
|
+
half hours). `UNAVAILABLE` now covers: no entry decision or no position; a position that has not closed; and a
|
|
53
|
+
closed position whose capture is still waiting out its delay, failed, or predates capture. Trades closed before
|
|
54
|
+
2026-07-28 without a chart stay `UNAVAILABLE`.
|
|
55
|
+
- **`get_agent_explorer` returns 25 entries by default** (was 100). `limit` still accepts 1-100; pass it to ask for
|
|
56
|
+
more. A result over the result cap is refused with `nextAct: narrow` — ask again with a smaller `limit`.
|
|
57
|
+
|
|
58
|
+
### Added output — a field you can read
|
|
59
|
+
|
|
60
|
+
- **`signalLogId` on every `get_radar_activity` row and every `get_radar_activity_summary` recent row.** On a
|
|
61
|
+
`FIRE_DISPOSITION` row whose disposition is `FIRED`, it names the signal log that fire's evaluation wrote — open it
|
|
62
|
+
with `get_signal_log({ agentId, logId })`. It is `null` when that evaluation wrote none (screened out or blocked
|
|
63
|
+
before a log existed) and on every other row. A strict-schema client accepts the new key on each variant.
|
|
64
|
+
|
|
65
|
+
### Corrected answers — same shape, true values
|
|
66
|
+
|
|
67
|
+
- **`get_intelligence_agent`** and the receipts of create, update, activate and archive serve your rolling-24h LLM
|
|
68
|
+
spend on the agent (`last24hCostUsd`), your own active Arena deployments of it (`activeGameCount` — another
|
|
69
|
+
user's deployments of a platform agent are not counted) and `hasActiveAssignments`, the values
|
|
70
|
+
`list_intelligence_agents` serves. They used to serve `0`, `0` and `false`.
|
|
71
|
+
- **`get_agent_decision_context`** serves the open position's real `signalLogId` (it served `''`). It answers only
|
|
72
|
+
for an agent position that is OPEN on the coin; for a coin that did not trade, read `list_gate_blocks` and
|
|
73
|
+
`get_radar_activity_summary`.
|
|
74
|
+
- **`get_radar_activity`'s `FIRES` filter** keeps each fire's `EVALUATION_OUTCOME` row beside its disposition — the
|
|
75
|
+
only record of a fire refused before it wrote a signal log.
|
|
76
|
+
|
|
77
|
+
### Declared sizes — the result cap is announced
|
|
78
|
+
|
|
79
|
+
- `get_radar_activity` (narrow with `limit`, `detail` or `includeCurve`), `get_agent_explorer` (narrow with `limit`),
|
|
80
|
+
`get_public_agent_signal_log_detail` and `list_radar_deployments` (read one coin with `get_radar_deployment`)
|
|
81
|
+
carry `_meta["anthropic/maxResultSizeChars"]`.
|
|
82
|
+
|
|
83
|
+
### Corrected descriptions
|
|
84
|
+
|
|
85
|
+
`get_signal_log` names every block with its null case; `get_public_agent_signal_log_detail` states that a FAILED log
|
|
86
|
+
returns `log: null`; `get_radar_deployment` says a null `minConviction` is no floor (never inherited) and
|
|
87
|
+
`resolvedConviction` is the slot's own bar; `get_radar_activity_summary` names `ENTRY_VOID` and its 168-hour window;
|
|
88
|
+
`list_radar_deployments` names `summary.radarPaused`; `get_regime_snapshot`'s 4h is a default only — a Radar slot
|
|
89
|
+
reads its agent's own regime timeframe.
|
|
90
|
+
|
|
91
|
+
## Contract history — v126 (a queued entry executes at its close; nothing waits for an approval)
|
|
92
|
+
|
|
93
|
+
**Breaking at v126: three entry-decision tools leave the catalog you discover, two outputs narrow, and one status
|
|
94
|
+
value is renamed.** v126 is the contract on top of v125. Reconnect the proxy, or restart it, so discovery reads the
|
|
95
|
+
new catalog.
|
|
96
|
+
|
|
97
|
+
A request you queue with `propose_entry_decision` is now an entry the player has already consented to: at the
|
|
98
|
+
agent's decided strategy-bar close, a qualifying entry is placed at once, sized by the agent's own risk budget, with
|
|
99
|
+
no further step. Confirm with the player before calling it — their ask to trade that coin with that agent, or a
|
|
100
|
+
standing instruction to trade for them, is the consent. The `mcp:wager` grant is that standing permission for an MCP
|
|
101
|
+
client, and the consent screen says so.
|
|
102
|
+
|
|
103
|
+
### Removed tools — something you called is gone
|
|
104
|
+
|
|
105
|
+
A call naming one is answered as an unknown tool; there is no alias, and none has a replacement call.
|
|
106
|
+
|
|
107
|
+
- **`accept_entry_decision`**: nothing waits to be accepted. The entry executes at its decided close; consent comes
|
|
108
|
+
before `propose_entry_decision`.
|
|
109
|
+
- **`cancel_entry_decision`**: a decided entry is not cancelled. Withdraw a queued request with
|
|
110
|
+
`cancel_entry_request({ requestId })` until its close fires.
|
|
111
|
+
- **`list_pending_approvals`**: read a pending request with `get_entry_request({ requestId })`, and placing and live
|
|
112
|
+
positions with `list_user_active_positions()`.
|
|
113
|
+
|
|
114
|
+
### Narrowed output — a shape you read has fewer members
|
|
115
|
+
|
|
116
|
+
- **`propose_entry_decision`** (now titled *Queue Entry*) returns `result` as `queued | error`. The `recommendation`
|
|
117
|
+
and `no_trade` members are gone; a decided close's answer lands in the request's conversation, read with
|
|
118
|
+
`get_trade_conversation`.
|
|
119
|
+
- **`get_agents_hub`** publishes no approval: `hubStatus` is `IN_TRADE`, `RADAR_ARMED`, `ARENA_DEPLOYED` or `IDLE`
|
|
120
|
+
(in that precedence), rows have no `pendingApprovalCount`, and the summary has no `totalPendingApprovalCount`.
|
|
121
|
+
|
|
122
|
+
### Renamed value — a word you matched changed
|
|
123
|
+
|
|
124
|
+
- The execution status **`AWAITING_APPROVAL` is `PROPOSED`** wherever it is published (`get_signal_log`,
|
|
125
|
+
`get_public_agent_signal_log_detail`): a position whose order is being placed. Match `PROPOSED` where you matched
|
|
126
|
+
`AWAITING_APPROVAL`.
|
|
127
|
+
|
|
128
|
+
### Re-specified behavior
|
|
129
|
+
|
|
130
|
+
- **A queued request's entry executes at its decided close.** Its conversation's `recommendation` card is the entry
|
|
131
|
+
locator: it names the decision (`get_entry_decision`) and the position the request placed.
|
|
132
|
+
- **Every request that is not withdrawn is answered once.** A request whose deadline passed unanswered is answered by
|
|
133
|
+
the next sweep — `close_missed` for its bar, or the engine's `EVALUATION_FAULTED` for a fired one whose decision job
|
|
134
|
+
is gone — and reads as pending through `get_entry_request` until then.
|
|
135
|
+
|
|
136
|
+
## Contract history — v125 (MCP serves the read the client shows)
|
|
137
|
+
|
|
138
|
+
**Breaking at v125: nine trade and signal tools leave the catalog you discover, one tool joins it, two outputs
|
|
139
|
+
reshape, one tool refuses three inputs, one output field and three ack fields are gone.** v125 is the contract on top
|
|
140
|
+
of v124. Reconnect the proxy, or restart it, so discovery reads the new catalog.
|
|
141
|
+
|
|
142
|
+
### Removed tools — something you called is gone
|
|
143
|
+
|
|
144
|
+
Each was a parallel, narrower or dead read beside the one the web client shows. A call naming one is answered as an
|
|
145
|
+
unknown tool; there is no alias.
|
|
146
|
+
|
|
147
|
+
- **`list_trade_outcomes`**: call `list_agent_trades({ agentId })`, then
|
|
148
|
+
`get_trade_outcome_by_decision({ decisionId })` for a trade's fills, fees, gross P&L, slippage, leverage,
|
|
149
|
+
`closedBy`, duration, excursion and `exitRepriceSource`.
|
|
150
|
+
- **`get_signal_performance`**: call `get_public_agent_signal_performance({ agentId })`. The owner's slice is
|
|
151
|
+
`list_signal_logs({ agentId }).summary` and `list_agent_trades({ agentId }).summary`.
|
|
152
|
+
- **`get_agent_open_positions`**: call `get_public_agent_open_positions({ agentId, filter: { coinTicker: [...] } })`.
|
|
153
|
+
- **`get_public_agent_unrealized_pnl`**: call `get_public_agent_open_positions({ agentId, filter: { signalSource } })`;
|
|
154
|
+
its `unrealizedPnlUsd` is the figure.
|
|
155
|
+
- **`list_session_agent_positions`**: call `list_user_active_positions()`; each position carries
|
|
156
|
+
`marketGridSessionId`.
|
|
157
|
+
- **`get_order_status`**: call `list_agent_open_orders()` for the platform's record, `get_open_orders()` for the
|
|
158
|
+
venue's.
|
|
159
|
+
- **`get_decision_order_attribution`**: call `list_agent_open_orders()`, `list_user_active_positions()` and
|
|
160
|
+
`list_agent_trades()`; each row names its `decisionId`.
|
|
161
|
+
- **`list_entry_decisions`**: call `list_signal_logs({ agentId })`, then `get_signal_log({ agentId, logId })`.
|
|
162
|
+
- **`get_agent_fund_allocation`**: call `get_agent_budget({ agentId })` for `haltedAt`, `haltReason` and
|
|
163
|
+
`perTradePushEnabled`.
|
|
164
|
+
|
|
165
|
+
### Added tool and fields
|
|
166
|
+
|
|
167
|
+
- **`get_public_agent_open_positions({ agentId, filter })`** serves an agent's open book, newest open first. Each
|
|
168
|
+
row carries its decided `stopLoss` and `takeProfit` and its live `mark` (`unrealizedPnlUsd`, `movePercent`,
|
|
169
|
+
`roePercent`; `null` when the coin has no usable mark), beside the marked rows' `unrealizedPnlUsd` and an
|
|
170
|
+
`unpricedPositionCount`. The row's open instant is `openedAt`; `leverage` and `signalLogId` are never null, and
|
|
171
|
+
there is no `timeHorizon`. An archived or unknown agent reads as no positions.
|
|
172
|
+
- **`list_agent_trades`** rows carry `decisionId`, the key `get_trade_outcome_by_decision` takes. The tool accepts
|
|
173
|
+
`q` (1–64 characters after trimming).
|
|
174
|
+
- **`list_agent_open_orders`** rows carry `exchangeOrderId` (`null` until the venue acknowledges), `cloid` and
|
|
175
|
+
`decisionId`, so an agent order joins `get_open_orders` and chains to its decision.
|
|
176
|
+
|
|
177
|
+
### Reshaped output — something you read moved
|
|
178
|
+
|
|
179
|
+
- **`list_signal_logs`** serves the My Agents Signals tab's read: `{ signals, nextCursor, summary }` across every one
|
|
180
|
+
of your agents unless `agentId` narrows it. Each row names its agent and carries `rejection`, the reason and detail
|
|
181
|
+
of the signal's rejected agent position, `null` otherwise.
|
|
182
|
+
- **`list_user_active_positions`** serves every position once, in `positions`. Each `agents` entry keeps its group
|
|
183
|
+
figures and loses its nested `positions`.
|
|
184
|
+
|
|
185
|
+
### Rejected input — a key you sent is refused
|
|
186
|
+
|
|
187
|
+
- **`list_signal_logs`** refuses `direction`, `terminalStatus` and `signalSource` as unrecognised keys. Its `agentId`
|
|
188
|
+
is optional, and it accepts `coinTicker`, `q`, `cursor` and `limit` (1–50, default 10).
|
|
189
|
+
|
|
190
|
+
### Removed fields — a value you read is gone
|
|
191
|
+
|
|
192
|
+
- **`skippedCount`** leaves `get_public_agent_signal_performance`; it was always `0`. `skipCount` counts the SKIP
|
|
193
|
+
decisions, and `blockedCount` counts the agent's ineligible attempts.
|
|
194
|
+
- **`availableUsd`, `lifetimeAllocatedUsd` and `lifetimeRecalledUsd`** leave the `allocation` that
|
|
195
|
+
`halt_intelligence_agent`, `resume_intelligence_agent` and `set_agent_per_trade_push` return; it is now
|
|
196
|
+
`{ agentId, haltedAt, perTradePushEnabled }`. The three figures were zero on every agent.
|
|
197
|
+
|
|
198
|
+
### Declared result size
|
|
199
|
+
|
|
200
|
+
- **`list_signal_logs` and `list_agent_trades` declare the configured result cap.** A page past it is refused with
|
|
201
|
+
`nextAct: narrow`; ask again with a smaller `limit`.
|
|
202
|
+
|
|
203
|
+
## Contract history — v124 (an agent's record is its thought log and its activity feed)
|
|
204
|
+
|
|
205
|
+
**Breaking at v124: three agent-record tools leave the catalog you discover, and a thought-log entry loses a
|
|
206
|
+
field.** v124 is the contract on top of v123.2.0. Reconnect the proxy, or restart it, so discovery reads the new
|
|
207
|
+
catalog.
|
|
208
|
+
|
|
209
|
+
### Removed tools — something you called is gone
|
|
210
|
+
|
|
211
|
+
Each was a duplicate door onto the two per-agent reads. A call naming one is answered as an unknown tool; there is
|
|
212
|
+
no alias.
|
|
213
|
+
|
|
214
|
+
- **`get_agent_journal({ agentId, limit })`**: call `get_agent_thought_log({ agentId, limit })` and
|
|
215
|
+
`get_agent_activity_feed({ agentId, limit })`. Read the owner's `username` from `get_account_state()`.
|
|
216
|
+
- **`get_user_thought_log`**: call `get_agent_thought_log({ agentId })` for each agent
|
|
217
|
+
`list_intelligence_agents()` lists. Read a trade's reasoning from `get_signal_log`, and an arena entry's reasoning
|
|
218
|
+
from `list_my_market_grid_entries` and `get_my_market_grid_entry`.
|
|
219
|
+
- **`get_user_activity_feed`**: call `get_agent_activity_feed({ agentId })` for each agent
|
|
220
|
+
`list_intelligence_agents()` lists.
|
|
221
|
+
|
|
222
|
+
### Reshaped output — a field you read is gone
|
|
223
|
+
|
|
224
|
+
- **`get_agent_thought_log` entries no longer carry `marketSnapshot`.** For an arena decision it held the agent's
|
|
225
|
+
whole resolved prompt, larger than the result cap, so a page holding one could not be served at all, even at
|
|
226
|
+
`limit: 1`, and no later entry could be reached. Each entry still carries its outcome, written reasoning, grid pick
|
|
227
|
+
and parsed picks, confidence and the floor enforced against it, its usage-event link and its creation instant.
|
|
228
|
+
|
|
229
|
+
### Declared result size
|
|
230
|
+
|
|
231
|
+
- **`get_agent_thought_log` declares the configured result cap.** A page past it is refused with
|
|
232
|
+
`nextAct: narrow`; ask again with a smaller `limit`.
|
|
233
|
+
|
|
234
|
+
### Descriptions
|
|
235
|
+
|
|
236
|
+
- `get_agent_thought_log` names both decisions it records: an arena grid decision and a trade thesis
|
|
237
|
+
(`AGENT_TRADE_THESIS`, whose full pipeline is `get_signal_log`).
|
|
238
|
+
- `get_agent_activity_feed` names the event families its rows carry: arena auto-submit triggers and grid outcomes,
|
|
239
|
+
cost-limit and insufficient-funds blocks, funds committed to a trade or a wager, halts and admission blocks, and
|
|
240
|
+
lifecycle events.
|
|
241
|
+
|
|
41
242
|
## Contract history — v122 (only an officer's own turn records a review)
|
|
42
243
|
|
|
43
244
|
**Breaking at v122: two officer review tools leave the catalog you discover.** v122 is the contract on top of v121.
|
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.21";
|
|
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.21';
|
|
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];
|