@zltquant/zlt-mcp 0.7.3 → 0.7.5

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/config.json CHANGED
@@ -37,6 +37,28 @@
37
37
  ],
38
38
  "default": "strategy",
39
39
  "description": "模板分类。strategy 表示策略模板,research 表示研究模板,factor 表示因子模板,extdata 表示外部数据模板,mall 表示社区策略,research_report 表示研报复现。省略时默认查询 strategy。"
40
+ },
41
+ "offset": {
42
+ "type": "integer",
43
+ "minimum": 0,
44
+ "default": 0,
45
+ "description": "代理层分页起点,不发送给上游;默认 0。"
46
+ },
47
+ "limit": {
48
+ "type": "integer",
49
+ "minimum": 1,
50
+ "maximum": 50,
51
+ "default": 20,
52
+ "description": "代理层最多返回条数,不发送给上游;默认 20,最大 50。"
53
+ },
54
+ "fields": {
55
+ "type": "array",
56
+ "maxItems": 50,
57
+ "items": {
58
+ "type": "string",
59
+ "maxLength": 128
60
+ },
61
+ "description": "代理层按需保留的顶层字段名,不发送给上游;省略时保留原字段。"
40
62
  }
41
63
  },
42
64
  "additionalProperties": false
@@ -230,6 +252,28 @@
230
252
  "parentId": {
231
253
  "type": "integer",
232
254
  "description": "父级分类 ID。可选;不传时只按 treeType 查询分类列表。"
255
+ },
256
+ "offset": {
257
+ "type": "integer",
258
+ "minimum": 0,
259
+ "default": 0,
260
+ "description": "代理层分页起点,不发送给上游;默认 0。"
261
+ },
262
+ "limit": {
263
+ "type": "integer",
264
+ "minimum": 1,
265
+ "maximum": 50,
266
+ "default": 20,
267
+ "description": "代理层最多返回条数,不发送给上游;默认 20,最大 50。"
268
+ },
269
+ "fields": {
270
+ "type": "array",
271
+ "maxItems": 50,
272
+ "items": {
273
+ "type": "string",
274
+ "maxLength": 128
275
+ },
276
+ "description": "代理层按需保留的顶层字段名,不发送给上游;省略时保留原字段。"
233
277
  }
234
278
  },
235
279
  "required": [
@@ -283,6 +327,19 @@
283
327
  ],
284
328
  "additionalProperties": false
285
329
  }
330
+ },
331
+ "offset": {
332
+ "type": "integer",
333
+ "minimum": 0,
334
+ "default": 0,
335
+ "description": "代理层结果分页起点,不发送给上游;默认 0。"
336
+ },
337
+ "limit": {
338
+ "type": "integer",
339
+ "minimum": 1,
340
+ "maximum": 50,
341
+ "default": 20,
342
+ "description": "代理层最多返回的区间条目数,不发送给上游;默认 20,最大 50。"
286
343
  }
287
344
  },
288
345
  "required": [
@@ -448,6 +505,19 @@
448
505
  ],
449
506
  "additionalProperties": false
450
507
  }
508
+ },
509
+ "offset": {
510
+ "type": "integer",
511
+ "minimum": 0,
512
+ "default": 0,
513
+ "description": "代理层缺口区间分页起点,不发送给上游;默认 0。"
514
+ },
515
+ "limit": {
516
+ "type": "integer",
517
+ "minimum": 1,
518
+ "maximum": 50,
519
+ "default": 20,
520
+ "description": "代理层最多返回的缺口区间数,不发送给上游;默认 20,最大 50。"
451
521
  }
452
522
  },
453
523
  "required": [
@@ -1007,7 +1077,7 @@
1007
1077
  },
1008
1078
  {
1009
1079
  "name": "mcp-get-strategy-list",
1010
- "description": "查询本地策略列表(只展示 templateVal=strategy 的数据),返回策略ID、名称、类型、本地路径等。treeId 是策略分类(folder)ID:默认 1(用户策略默认所在文件夹);传其他值只查该分类;传 0 则跨所有分类聚合并按 strategyId 去重(ZLTAF 原生 treeId=0 查不到数据,聚合由 MCP 实现)。status 固定为 0,必须显式传入。",
1080
+ "description": "查询本地策略列表(只展示 templateVal=strategy 的数据),默认只返回定位字段,其他字段用 fields 点名(见 disclosure.availableFields)。treeId 是策略分类(folder)ID:默认 1(用户策略默认所在文件夹);传其他值只查该分类;传 0 则跨所有分类聚合并按 strategyId 去重(ZLTAF 原生 treeId=0 查不到数据,聚合由 MCP 实现)。status 固定为 0,必须显式传入。",
1011
1081
  "inputSchema": {
1012
1082
  "type": "object",
1013
1083
  "properties": {
@@ -1027,6 +1097,28 @@
1027
1097
  "userId": {
1028
1098
  "type": "string",
1029
1099
  "description": "ZLTID 兼容字段,可省略;策略列表按分类查询,不依赖 userId。请勿传入伪造值,也不要要求用户通过 VSCode 插件登录。"
1100
+ },
1101
+ "offset": {
1102
+ "type": "integer",
1103
+ "minimum": 0,
1104
+ "default": 0,
1105
+ "description": "代理层分页起点,不发送给上游;默认 0。"
1106
+ },
1107
+ "limit": {
1108
+ "type": "integer",
1109
+ "minimum": 1,
1110
+ "maximum": 50,
1111
+ "default": 20,
1112
+ "description": "代理层最多返回条数,不发送给上游;默认 20,最大 50。"
1113
+ },
1114
+ "fields": {
1115
+ "type": "array",
1116
+ "maxItems": 50,
1117
+ "items": {
1118
+ "type": "string",
1119
+ "maxLength": 128
1120
+ },
1121
+ "description": "代理层按需保留的顶层字段名,不发送给上游;省略时只返回默认五个字段,传入则完全按所列字段返回。"
1030
1122
  }
1031
1123
  },
1032
1124
  "required": [
@@ -1040,7 +1132,7 @@
1040
1132
  },
1041
1133
  {
1042
1134
  "name": "mcp-get-backtest-list",
1043
- "description": "查询指定策略ID数组对应的回测列表,返回回测ID、名称、回测周期、回测状态与回测时间——**不要展示收益相关的信息**。pageSize 与 runType 是固定值,必须显式传入,不要依赖 default 自动补值。",
1135
+ "description": "查询指定策略ID数组对应的回测列表——**不要展示收益相关的信息**。默认只返回定位字段(code 即 codePath),其他字段用 fields 点名(见 disclosure.availableFields)。pageSize 与 runType 必须显式传入,不要依赖 default 自动补值。",
1044
1136
  "inputSchema": {
1045
1137
  "type": "object",
1046
1138
  "properties": {
@@ -1060,11 +1152,10 @@
1060
1152
  },
1061
1153
  "pageSize": {
1062
1154
  "type": "integer",
1063
- "enum": [
1064
- 100
1065
- ],
1066
- "default": 100,
1067
- "description": "每页数量,固定为 100,必须显式传入。不要依赖 default 自动补值。"
1155
+ "minimum": 1,
1156
+ "maximum": 100,
1157
+ "default": 20,
1158
+ "description": "每页数量,传 20;最大 100。必须显式传入,不要依赖 default 自动补值。"
1068
1159
  },
1069
1160
  "runType": {
1070
1161
  "type": "integer",
@@ -1073,6 +1164,15 @@
1073
1164
  ],
1074
1165
  "default": 2,
1075
1166
  "description": "回测运行类型,固定为 2,必须显式传入。不要依赖 default 自动补值。"
1167
+ },
1168
+ "fields": {
1169
+ "type": "array",
1170
+ "maxItems": 50,
1171
+ "items": {
1172
+ "type": "string",
1173
+ "maxLength": 128
1174
+ },
1175
+ "description": "代理层按需保留的顶层字段名,不发送给上游;省略时只返回默认八个字段,传入则完全按所列字段返回。"
1076
1176
  }
1077
1177
  },
1078
1178
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zltquant/zlt-mcp",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "智量通 ZLT Quant MCP server(Windows x64;量化策略创建与本地回测)",
5
5
  "bin": {
6
6
  "zlt-mcp": "./zlt-mcp-proxy.bundle.cjs"