@battlegrid/mcp-server 31.2.78 → 31.2.80
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 +96 -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,102 @@ 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 — v98 (a clause can read the bar before)
|
|
28
|
+
|
|
29
|
+
**Breaking at v98: a condition clause accepts six operators that compare a column with its own previous
|
|
30
|
+
completed bar, and a clause's evidence gains a second shape.** v98 is the contract on top of v97.
|
|
31
|
+
|
|
32
|
+
### Widened input — something new you can send
|
|
33
|
+
|
|
34
|
+
- A condition clause on `stage_strategy_draft` and `preview_strategy_report` accepts:
|
|
35
|
+
- `crossesAbove` / `crossesBelow` with a number `value` — TRUE when the value is above (below) it on the
|
|
36
|
+
decided bar and was at or below (at or above) it on the bar before. A bar landing exactly on the level
|
|
37
|
+
has not crossed.
|
|
38
|
+
- `increased` / `decreased` with **no** literal — strictly above (below) the prior bar's reading. A
|
|
39
|
+
`value` beside them is refused.
|
|
40
|
+
- `enters` / `exits` with one `label` — the label read now and not on the bar before, or the reverse.
|
|
41
|
+
- Numeric headers take the crossings and changes; classification, direction and boolean headers take the
|
|
42
|
+
transitions; event and rank headers take none of them. A strategy's served `conditionOperators`
|
|
43
|
+
(`preview_strategy_report` at `detail: "detailed"`, and the scalar vocabulary) lists exactly what each
|
|
44
|
+
header admits on that strategy; `get_strategy_column_contract`, which reads no strategy's stored history,
|
|
45
|
+
lists the operators the header's kind takes.
|
|
46
|
+
- Each of the six reads two completed bars, never the forming one, on every basis, so its reading is never
|
|
47
|
+
provisional. A failed read on either bar is `UNRESOLVED`; a bar with no value reads `FALSE`.
|
|
48
|
+
|
|
49
|
+
### Narrowed acceptance — the same request, refused where it cannot be read
|
|
50
|
+
|
|
51
|
+
- A header whose stored history keeps only one bar (`conditionHold.maxWindow` 1) admits none of the six:
|
|
52
|
+
the clause is refused with `CONDITION_OPERATOR_UNSUPPORTED`, and every operator refusal's
|
|
53
|
+
`allowedDomain` now lists the operators that header admits.
|
|
54
|
+
- `crossesAbove`, `crossesBelow`, `enters` and `exits` are edges: a hold with `atLeast` above 1 is refused
|
|
55
|
+
(`CONDITION_HOLD_ILLEGAL`) — hold them "within n closes". A prior-bar clause's largest window is one bar
|
|
56
|
+
less than its header's, and the frame-read budget counts the bar before.
|
|
57
|
+
|
|
58
|
+
### Reshaped output — a clause's evidence has two shapes
|
|
59
|
+
|
|
60
|
+
- A prior-bar clause's evidence carries **`priorOperand`** — the same column's reading on the bar before —
|
|
61
|
+
and a **`decidedBar` that is never null**. It appears on `preview_strategy_report`,
|
|
62
|
+
`get_radar_close_decisions`, `list_gate_blocks`, `preview_radar_resolution`, `get_signal_log`,
|
|
63
|
+
`get_agent_coin_qualification` (a condition level's clauses) and the trade register an agent reads.
|
|
64
|
+
- A current-bar clause's evidence is unchanged and carries no `priorOperand`; every record written before
|
|
65
|
+
v98 reads as it was written.
|
|
66
|
+
- Rendered evidence lines read prior before current: `RSI14_now crosses above 50 (49.6 → 50.4)`.
|
|
67
|
+
|
|
68
|
+
### Widened output
|
|
69
|
+
|
|
70
|
+
- A condition series' `BOUND` threshold `op` widens to `crossesAbove` / `crossesBelow`, drawn at the level
|
|
71
|
+
crossed. A change or a transition draws no threshold.
|
|
72
|
+
- The authoring contract digest gains `domains.conditionOperator`, the thirteen operator names.
|
|
73
|
+
|
|
74
|
+
A clause reader that assumed one evidence shape, or an operator vocabulary of seven, breaks on the same
|
|
75
|
+
call at v98 — hence the MAJOR.
|
|
76
|
+
|
|
77
|
+
## Contract history — v97 (a signal records the evidence it decided on)
|
|
78
|
+
|
|
79
|
+
**Breaking at v97: an evaluated signal's evidence keys move, `BB_TOUCH` touches by %B, and a crossing is
|
|
80
|
+
read on the bar that leaves zero.** v97 is the contract on top of v96.
|
|
81
|
+
|
|
82
|
+
### Changed meaning — the same record, different keys
|
|
83
|
+
|
|
84
|
+
- An evaluated signal's `indicatorValues` — on `get_signal_log`, `get_public_agent_signal_log_detail` and
|
|
85
|
+
`get_coin_signal_preview` — records the last price a live-priced signal evaluated under **`last_price`**.
|
|
86
|
+
Six signals recorded it under `price`: `MA_SMA200_ABOVE` / `_BELOW`, `SR_AT_SUPPORT` / `_RESISTANCE` and
|
|
87
|
+
`BOLLINGER_LOWER_TOUCH` / `_UPPER_TOUCH`; the three structure-approach signals now record it too.
|
|
88
|
+
- **`price` means the last closed close** on every signal that records it.
|
|
89
|
+
- The Bollinger touches add `bb_upper` and `bb_lower`, and their `bb_percent_b` is the live %B they
|
|
90
|
+
compared — never the closed-bar %B.
|
|
91
|
+
- The EMA 5/13 crosses add `ema_cross` (`1` / `−1`), and the sector comparison signals add `ema5`, `ema13`
|
|
92
|
+
and `ema20`.
|
|
93
|
+
- `MFI_SUSTAINED_*` and `CVD_BULLISH` / `CVD_BEARISH` record their prior-bar value when there is one, and
|
|
94
|
+
omit it when there is not.
|
|
95
|
+
|
|
96
|
+
A signal records exactly the keys its declared vocabulary names. Records written before v97 keep the keys
|
|
97
|
+
they were written with, so a reader of history meets both.
|
|
98
|
+
|
|
99
|
+
### Changed values — the same fields, one rule each
|
|
100
|
+
|
|
101
|
+
- **Crossings.** One zero-cross rule decides every crossing: a value that reaches zero has not crossed; one
|
|
102
|
+
that leaves zero has. Every `crossDetect` column (`MACD_cross`, `PPO_cross`, `ROC_cross` and authored
|
|
103
|
+
ones), the `EMA_CROSS` label, the MACD / PPO / stochastic cross signals and `FUNDING_RATE_FLIPPING` read
|
|
104
|
+
no crossing on a bar that lands exactly on zero. They read the crossing on the bar that leaves it.
|
|
105
|
+
- **`BB_TOUCH` and `bandTouch`** classify a touch when %B is strictly below `0.05` or above `0.95` — the
|
|
106
|
+
touch signals' default thresholds. Before, a price within 2% of the band width of an edge, inclusive,
|
|
107
|
+
touched. A degenerate band reads `none`, and a `BBtouch` condition now agrees with the scorecard's touch
|
|
108
|
+
at defaults.
|
|
109
|
+
- **RSI zone.** The projected RSI state is overbought strictly above 70 and oversold strictly below 30, as
|
|
110
|
+
the `RSI14_zone` columns already read it.
|
|
111
|
+
- **Descriptions.** A served rule description states the thresholds that rule evaluates, and the ROC
|
|
112
|
+
descriptions read "positive and rising".
|
|
113
|
+
|
|
114
|
+
### Widened output
|
|
115
|
+
|
|
116
|
+
- `get_strategy_signal_definition`'s `indicators[].meta` gains `optional: true` on a key the signal records
|
|
117
|
+
only when its read is present — `prev_cvd_value` on `CVD_BULLISH` / `CVD_BEARISH`, `prev_mfi14_value` on
|
|
118
|
+
`MFI_SUSTAINED_*`. Every other key is always recorded when the signal has the data to evaluate.
|
|
119
|
+
|
|
120
|
+
A key read at v96 is absent at v97 on the same signal, and a touch or a crossing read at v96 can read
|
|
121
|
+
differently on the same bar — hence the MAJOR.
|
|
122
|
+
|
|
27
123
|
## Contract history — v96 (a metric's meaning is declared once)
|
|
28
124
|
|
|
29
125
|
**Breaking at v96: `efficiency` admits only a level or a price-fact series, and `nearestZoneDist` changes
|
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.80";
|
|
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.80';
|
|
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];
|