@battlegrid/mcp-server 32.0.80 → 32.0.81
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/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.81";
|
|
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.81';
|
|
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];
|
package/package.json
CHANGED
package/skills/EXPORT.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generator": "battlegrid-app/server/scripts/export-mcp-skills.mjs",
|
|
3
|
-
"contractVersion": "
|
|
3
|
+
"contractVersion": "149.1.0",
|
|
4
4
|
"files": {
|
|
5
5
|
"battlegrid-agent-management/SKILL.md": "324ef8181bfcfc99b955d9644ed543c6ab91071153d43f77ccf0a4979b896b09",
|
|
6
6
|
"battlegrid-agent-management/references/agent-stage-examples.md": "dffcc353d61dfc7b5bb6a2b3077fc6bf8c760a34c287cafb3b59b99306f24195",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"battlegrid-radar-deployment/SKILL.md": "cf0eeaf9408ad57867415370872c1308b8ebdb9e8c73c0c6d2e34b6caef5599f",
|
|
14
14
|
"battlegrid-radar-deployment/references/arena-stage-examples.md": "65af54b67c3248c53fb8911df769ad32824e1f1f1d83ffc007b42a888d5e3076",
|
|
15
15
|
"battlegrid-radar-deployment/references/radar-stage-examples.md": "7a4195011aa764b106567606f7a2a8ae8e9b2bf74c36b3c74a72379969d70af8",
|
|
16
|
-
"battlegrid-strategy-authoring/SKILL.md": "
|
|
16
|
+
"battlegrid-strategy-authoring/SKILL.md": "9a58b8cda9f1042491fb7dc4f9933a4639c3daed65002f7c8d2956caae1c7a58",
|
|
17
17
|
"battlegrid-strategy-authoring/references/strategy-stage-examples.md": "f10ecdc91f3660a708eee7a7bacefce2acbb46c9cf7e0ac1454bd54f839f39fd",
|
|
18
18
|
"battlegrid-strategy-doctor/SKILL.md": "4be392e51f3b5e76ff4aa22f61700236e8b1e19dfe286aeda8ed98e48a8457ba",
|
|
19
19
|
"battlegrid-strategy-examples/SKILL.md": "a43623e2e5e2ade62d4e2dc1dfd5ce51efda7f15a4024713bc8058ff91beba07",
|
|
20
20
|
"battlegrid-strategy-examples/references/playbooks.md": "59996c37eea08e7ce398e49304171939e55c968400a1603597d6737faf9e1771",
|
|
21
21
|
"battlegrid-strategy-examples/references/recipes.md": "ee1b35f5341d3878ef8e8b045d0425a06fb25c76149fe841f2afe075909135f4",
|
|
22
|
-
"battlegrid-strategy-examples/references/tradingview-ports.md": "
|
|
22
|
+
"battlegrid-strategy-examples/references/tradingview-ports.md": "966948d44cd8bb1748513f5bd84b74780d4c54dd8cab9285ac640d7a5fba14ed",
|
|
23
23
|
"battlegrid-trade-analysis/SKILL.md": "ec0b543bc62fe66d629833b10e4bc58548be1fee57f29c04f41f036e860af1ca",
|
|
24
24
|
"battlegrid-trade-proposal/SKILL.md": "8d833022f753dfc5a765eca2fcd272c4f29d22b8444bc00c14ce63571646ba71"
|
|
25
25
|
}
|
|
@@ -177,18 +177,21 @@ question you would otherwise guess — and a refusal you would otherwise earn:
|
|
|
177
177
|
`history`, or `null` when the metric has no series, which is why a series transform does not
|
|
178
178
|
compose on it. Window and offset carry a declared `minimum`, a `bound` and a served `maximum` on the
|
|
179
179
|
transform entry, or `null` when none fits. A `lookback` bound is the largest value whose read size
|
|
180
|
-
fits the lookback cap. A `depth` bound — the length of `aggregate` (the SMA, `ta.sma`)
|
|
181
|
-
(`ta.ema`)
|
|
182
|
-
|
|
183
|
-
`
|
|
180
|
+
fits the lookback cap. A `depth` bound — the length of `aggregate` (the SMA, `ta.sma`), `ema`
|
|
181
|
+
(`ta.ema`), `rma` (Wilder's average, `ta.rma`), `wma` (`ta.wma`), `rsi` (`ta.rsi`, 0–100) and `cci` (`ta.cci`),
|
|
182
|
+
or of a statistic (`zscore`, `stddev`, `linregSlope`, `pctl` (`ta.percentrank`), `rollingMin`, `rollingMax`) — is the longest window whose one-value read fits the readable depth beside the lookback cap (936
|
|
183
|
+
for an SMA, WMA, CCI or a statistic, 935 for `pctl`, 269 for an EMA, 118 for an RMA or RSI at the shipped cap);
|
|
184
|
+
`rsi` and `cci` read null over a window whose values are all equal; a longer one is refused with
|
|
185
|
+
`REPORT_COLUMN_DEPTH_EXCEEDED`, and `lookback.used` counts only where the window ends: its newest bar, or a
|
|
186
|
+
rolling extreme's `offset` back (the offset stays lookback-bounded, 63 at the shipped cap). For a
|
|
184
187
|
chained column the outer's declaration is `chainOuterParameters[outer]` (served beside `metric`)
|
|
185
188
|
and its bound is `chainedOuters[outer].windowMaximum`; `chainedOuters[outer].offsetMinimum` is the least
|
|
186
189
|
offset the chain accepts — `1` for a rolling extreme chained into `distance` (the breakout level), `null`
|
|
187
190
|
on every other chain — so stage the inner's offset at or above it. A chain outer never takes an offset:
|
|
188
191
|
the offset belongs to the inner. The window carries a `unit`
|
|
189
192
|
(`seriesElements`, `seriesChanges` for `efficiency`, which reads one bar more than its window,
|
|
190
|
-
`priorElements` for `pctl`,
|
|
191
|
-
|
|
193
|
+
`priorElements` for `pctl`, `smoothingLength` for `ema`, `wilderLength` for `rma` or `wilderChanges` for `rsi`,
|
|
194
|
+
whose lengths read more bars than they name — `ema(20)` reads 73, `rma(14)` reads 108, `rsi(14)` reads 109). An average reads null until its whole window is present. Stage at most
|
|
192
195
|
that maximum. A chained column's operands come from
|
|
193
196
|
`chainedOuters[outer].operands`, never from the metric's full `spreadOperands`.
|
|
194
197
|
- A metric can declare its own knobs on `parameters` (served on the metric entry, `null` when it
|
|
@@ -199,15 +202,41 @@ question you would otherwise guess — and a refusal you would otherwise earn:
|
|
|
199
202
|
refused with `REPORT_COLUMN_DEPTH_EXCEEDED` on `leftBars`. Stage the pair on the column beside its
|
|
200
203
|
transform knobs, and leave it off for 2/2 — an explicit 2/2 is the same column. Off 2/2 the header
|
|
201
204
|
carries `_l<left>r<right>` after the code (`fractalHi_l5r5_1h`). Stage a pair only on a transform
|
|
202
|
-
(or chained outer) whose entry serves `metricParametersAccepted: true`; `rank`, `relativeTo
|
|
203
|
-
|
|
205
|
+
(or chained outer) whose entry serves `metricParametersAccepted: true`; `rank`, `relativeTo`
|
|
206
|
+
and the depth-bounded windows (the averages and the statistics) read the stored 2/2 and refuse it. A condition hold over a column off 2/2 is
|
|
204
207
|
served a window of 1: each of its bars needs the full readable depth behind it.
|
|
205
208
|
- The eight market-structure metrics (`INTERNAL_STRUCTURE_*`, `SWING_STRUCTURE_*` event, trend and
|
|
206
209
|
level, `EQH`, `EQL`) declare their own knobs, each served with its `bound`: `swingLength` (`depth`,
|
|
207
210
|
default 50, minimum 10, maximum 100), `confluenceFilter` (`flag`, internal structure only), `equalBars` (`depth`,
|
|
208
211
|
default 3) and `equalThreshold` (`range`: stage exactly one of the served steps, 0 to 0.5 by 0.1).
|
|
209
212
|
Leave a knob off at its default. They read `null` until the column's bars prove a value, so a
|
|
210
|
-
short history reads more `null`. A trend reads `bullish` or `bearish`. They never take `rank`, `relativeTo
|
|
213
|
+
short history reads more `null`. A trend reads `bullish` or `bearish`. They never take `rank`, `relativeTo` or a depth-bounded window (an average or a statistic).
|
|
214
|
+
- `MFI14`, `WILLR14` and `CMF20` declare one knob, `period` (`depth`, minimum 2): its served `defaultValue` is
|
|
215
|
+
each metric's own registered length (14, 14, 20), and its `maximum` the largest that fits the readable depth
|
|
216
|
+
(935 for MFI, 936 for %R and CMF at the shipped cap). Leave it off at the default. Off it the header carries
|
|
217
|
+
`_p<n>` (`MFI14_p21`), and the same refusals as an authored swing pair apply: no `rank`, `relativeTo` or
|
|
218
|
+
depth-bounded window. An operand of another oscillator in the same column reads its own registered length.
|
|
219
|
+
- The Stochastic (`STOCH_K`, `STOCH_D`) declares `period` (the %K length), `kSmoothing` and `dSmoothing`, at
|
|
220
|
+
TradingView's 14, 1, 3; the Stoch RSI (`STOCH_RSI_K`, `STOCH_RSI_D`) declares `rsiPeriod`, `period` (the
|
|
221
|
+
stochastic length), `kSmoothing` and `dSmoothing`, at 14, 14, 3, 3. Each is `depth`-bounded; the lengths have
|
|
222
|
+
minimum 2 and the smoothings minimum 1 (1 is unsmoothed). Leave every setting off at the defaults. Once any is
|
|
223
|
+
off, the header writes all of them (`K_p21s3d3`, `stochRsiK_rsi14_p21s3d3`) and the same refusals apply: no
|
|
224
|
+
`rank`, `relativeTo` or depth-bounded window.
|
|
225
|
+
- MACD (`MACD_LINE`, `MACD_SIGNAL`, `MACD_HIST`) and PPO (`PPO_LINE`, `PPO_SIGNAL`, `PPO_HIST`) declare `fast`,
|
|
226
|
+
`slow` and `signal`, the two close EMAs' lengths and the signal EMA's, at TradingView's 12, 26, 9. Each is
|
|
227
|
+
`depth`-bounded with minimum 1. Leave them off at the defaults; once any is off, the header writes all three
|
|
228
|
+
(`MACDhist_fast8slow21sig5`) and the same refusals apply.
|
|
229
|
+
- The Bollinger Bands (`BB_UPPER`, `BB_LOWER`, `BB_PCT_B`) declare `period` and `stdDev`, at TradingView's 20, 2;
|
|
230
|
+
the Keltner Channels (`KC_UPPER`, `KC_LOWER`) declare `period`, `atrPeriod` and `multiplier`, at 20, 10, 2. The
|
|
231
|
+
lengths are `depth`-bounded; `stdDev` (0.1 to 5) and `multiplier` (0.1 to 10) are `range` knobs on a 0.1 step —
|
|
232
|
+
any other value is refused. Leave them off at the defaults; once any is off, the header writes every setting
|
|
233
|
+
(`bbUpper20_p30sd2.5`, `kcLower_p20atr14mult2`) and the same refusals apply.
|
|
234
|
+
- Supertrend (`ST_LINE`, `ST_DIR`) declares `atrPeriod` and `multiplier`, at TradingView's 10, 3; the Parabolic SAR
|
|
235
|
+
(`PSAR`) declares `accelerationStart`, `accelerationIncrement` and `accelerationMaximum`, at 0.02, 0.02, 0.2.
|
|
236
|
+
`atrPeriod` is `depth`-bounded; `multiplier` is the 0.1-step range above, the start and increment are `range` knobs
|
|
237
|
+
from 0.001 to 0.1 on a 0.001 step, and the maximum from 0.01 to 1 on a 0.01 step. Leave them off at the defaults;
|
|
238
|
+
once any is off, the header writes every setting (`stLine_atr14mult2`, `PSAR_start0.01inc0.01max0.1`) and the
|
|
239
|
+
same refusals apply.
|
|
211
240
|
- `get_metric_construction_hints` → `rankOrderings`. Present only when rank is composable on that
|
|
212
241
|
metric, already range-gated server-side — read the offered set rather than deriving one from
|
|
213
242
|
the metric's native output.
|
|
@@ -148,6 +148,12 @@ rules about the columns themselves, not about porting — they live in the skill
|
|
|
148
148
|
- the z-score idiom `(x - ta.sma(x, n)) / ta.stdev(x, n)` is `x × zscore` at window `n`
|
|
149
149
|
(`RSI14_z20`), population σ as `ta.stdev` defaults to, banded at ±1 and ±2;
|
|
150
150
|
- `ta.stdev(x, n)` is `x × stddev` (`close_sd20`, in the input's own units);
|
|
151
|
+
- `ta.ema(x, n)`, `ta.rma(x, n)` and `ta.wma(x, n)` are `x × ema`, `x × rma` and `x × wma` at window `n`
|
|
152
|
+
(`close_ema200`, `close_rma14`, `close_wma34`), and `ta.sma(x, n)` is `x × aggregate` — a stored EMA or SMA
|
|
153
|
+
code is the exact source at its own length;
|
|
154
|
+
- `ta.rsi(x, n)` and `ta.cci(x, n)` are `x × rsi` and `x × cci` at window `n` (`hlc3_rsi21`, `close_cci50`),
|
|
155
|
+
each null over a window whose values are all equal; the stored `RSI14`, `RSI7`, `RSI2` and `CCI20` (on HLC3)
|
|
156
|
+
are the exact source at their own length, and `EMA50 × rsi` is the RSI of the stored 50-bar average;
|
|
151
157
|
- `ta.percentrank(x, n)` is `x × pctl` at window `n` — the `n` bars BEFORE the newest, ties at or below;
|
|
152
158
|
- `ta.highest(x, n)` / `ta.lowest(x, n)` are `x × rollingMax` / `x × rollingMin` (`high_max20`
|
|
153
159
|
is `DONCHIAN_UPPER`'s same-bar rail);
|