@dwlf/mcp-server 0.44.0 → 0.44.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle-windows.d.ts","sourceRoot":"","sources":["../../src/tools/cycle-windows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"cycle-windows.d.ts","sourceRoot":"","sources":["../../src/tools/cycle-windows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,QA0F7E"}
|
|
@@ -8,15 +8,15 @@ import { normalizeSymbol } from '../client.js';
|
|
|
8
8
|
export function registerCycleWindowTools(server, client) {
|
|
9
9
|
server.tool('dwlf_get_cycle_windows', 'When is this symbol\'s next cycle LOW (or HIGH) due? Returns the STORED cycle timing window per side — ' +
|
|
10
10
|
'the same edges the chart draws and the screener reads — for ONE symbol, whether or not the window is ' +
|
|
11
|
-
'open yet. Use it for "when does X\'s next weekly-low window open?"
|
|
12
|
-
'weekly low, against its usual gap?". Unlike `dwlf_get_cycle_setups`, which only lists symbols whose ' +
|
|
11
|
+
'open yet. Use it for "when does X\'s next weekly-low window open?", "when is X\'s next DAILY low due?" and ' +
|
|
12
|
+
'"how many weeks since X\'s last weekly low, against its usual gap?". Unlike `dwlf_get_cycle_setups`, which only lists symbols whose ' +
|
|
13
13
|
'weekly window is already open (and adds `phase` / early-mid-late for them), this answers for any symbol ' +
|
|
14
14
|
'but carries NO phase: to say whether a window is open, overdue or missed, compare today with the dated ' +
|
|
15
15
|
'edges below.\n\n' +
|
|
16
16
|
'SHAPE: `{ symbol, timeframe, generation, generationSource, verification, low, high }`. Each side is ' +
|
|
17
17
|
'`null` when the store holds nothing for it, otherwise `{ symbolUsed, current, retiredAbove, history }`. ' +
|
|
18
18
|
'`current` is the live window: `ruler` (the confirmed pivot the window counts from — `pivotDate`, ' +
|
|
19
|
-
'`price`); dated edges in order `earliest` (
|
|
19
|
+
'`price`); dated edges in order `earliest` (the shortest gap on record; weekly only — daily windows have none) → `opens` (early ' +
|
|
20
20
|
'bound) → `centre` (typical) → `closes` (late bound) → `hardMax` (the last bar by which the pivot must ' +
|
|
21
21
|
'arrive or the window is a miss), each with `bars` counted from the ruler and `extrapolated: true` when it ' +
|
|
22
22
|
'lies beyond the last candle; `gaps` (the gap statistics the band was drawn from, incl. `used` = the ' +
|
|
@@ -27,8 +27,10 @@ export function registerCycleWindowTools(server, client) {
|
|
|
27
27
|
'landed (`landedInside`, `daysFromOpen`, …) — which is how to judge how reliable THIS symbol\'s windows ' +
|
|
28
28
|
'have been.\n\n' +
|
|
29
29
|
'⚠️ Read `verification`: while it says `unverified` (it does for every window as long as the detection ' +
|
|
30
|
-
'gate stands failed), treat the edges as rough timing, not a forecast. ⚠️ The store covers WEEKLY
|
|
31
|
-
'
|
|
30
|
+
'gate stands failed), treat the edges as rough timing, not a forecast. ⚠️ The store covers WEEKLY and DAILY ' +
|
|
31
|
+
'(daily folded from the ledger\'s daily lows/highs); `timeframe: "1h"` answers with ' +
|
|
32
|
+
'null sides rather than a computed substitute. On daily, `bars` are trading candles, and an extrapolated ' +
|
|
33
|
+
'edge\'s date is an estimate from average bar spacing (it can fall on a non-trading day until real bars exist).', {
|
|
32
34
|
symbol: z
|
|
33
35
|
.string()
|
|
34
36
|
.min(1)
|
|
@@ -36,7 +38,7 @@ export function registerCycleWindowTools(server, client) {
|
|
|
36
38
|
timeframe: z
|
|
37
39
|
.enum(['1w', '1d', '1h'])
|
|
38
40
|
.optional()
|
|
39
|
-
.describe('Cycle timeframe (default 1w).
|
|
41
|
+
.describe('Cycle timeframe (default 1w). Weekly and daily windows are stored; hourly is not.'),
|
|
40
42
|
side: z
|
|
41
43
|
.enum(['low', 'high'])
|
|
42
44
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle-windows.js","sourceRoot":"","sources":["../../src/tools/cycle-windows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAiB,EAAE,MAAkB;IAC5E,MAAM,CAAC,IAAI,CACT,wBAAwB,EACxB,yGAAyG;QACvG,uGAAuG;QACvG,
|
|
1
|
+
{"version":3,"file":"cycle-windows.js","sourceRoot":"","sources":["../../src/tools/cycle-windows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAiB,EAAE,MAAkB;IAC5E,MAAM,CAAC,IAAI,CACT,wBAAwB,EACxB,yGAAyG;QACvG,uGAAuG;QACvG,6GAA6G;QAC7G,sIAAsI;QACtI,0GAA0G;QAC1G,yGAAyG;QACzG,kBAAkB;QAClB,sGAAsG;QACtG,0GAA0G;QAC1G,mGAAmG;QACnG,iIAAiI;QACjI,wGAAwG;QACxG,4GAA4G;QAC5G,sGAAsG;QACtG,2GAA2G;QAC3G,sGAAsG;QACtG,0GAA0G;QAC1G,sGAAsG;QACtG,yGAAyG;QACzG,gBAAgB;QAChB,wGAAwG;QACxG,6GAA6G;QAC7G,qFAAqF;QACrF,0GAA0G;QAC1G,gHAAgH,E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AAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;YACzD,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aACjE,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,oCAAoC,MAAM,KAC9C,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE;qBACH;iBACF;aACF,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dwlf/mcp-server",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"description": "MCP server for DWLF market analysis platform — exposes market data, indicators, signals, strategies, backtests, portfolio, trade journal, and more as AI-accessible tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|