dingtalk-mcp 1.1.5 → 1.1.7
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
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
| dingtalk-app-manage | 钉钉应用管理 | qyapi_microapp_manage<br>qyapi_get_microapp_list |
|
|
54
54
|
| dingtalk-service-window | 钉钉服务窗 | OfficialAccount.Message.Send OfficialAccount.Contact.Read OfficialAccount.Account.Read |
|
|
55
55
|
| dingtalk-teambition | 钉钉项目管理 | Project.Project.Write.All Project.Project.Read.All Project.Task.Write.All Project.Task.Read.All |
|
|
56
|
-
| dingtalk-report | 钉钉日志 | qyapi_report_statistics qyapi_report_manage qyapi_report_query
|
|
56
|
+
| dingtalk-report | 钉钉日志 | qyapi_report_statistics qyapi_report_manage qyapi_report_query|
|
|
57
57
|
|
|
58
58
|
4. ROBOT_CODE,用于发消息/DING的机器人Code
|
|
59
59
|
5. ROBOT_ACCESS_TOKEN,群自定义机器人ACCESS_TOKEN,用于自定义机器人发消息
|
|
@@ -227,7 +227,7 @@ tools:
|
|
|
227
227
|
日志来源标识,自定义的唯一标识。
|
|
228
228
|
示例值:"MCP_ASSISTANT"
|
|
229
229
|
|
|
230
|
-
- name:
|
|
230
|
+
- name: getReportList
|
|
231
231
|
description: |
|
|
232
232
|
查询用户发出的日志列表。
|
|
233
233
|
|
|
@@ -319,7 +319,7 @@ tools:
|
|
|
319
319
|
查询的日志修改结束时间,Unix时间戳(毫秒)(可选)。
|
|
320
320
|
与modified_start_time配合使用。
|
|
321
321
|
|
|
322
|
-
- name:
|
|
322
|
+
- name: getReportTemplateList
|
|
323
323
|
description: |
|
|
324
324
|
获取用户可见的日志模板列表。
|
|
325
325
|
|
|
@@ -367,7 +367,7 @@ tools:
|
|
|
367
367
|
默认值为100,建议使用默认值获取所有模板。
|
|
368
368
|
示例值:100
|
|
369
369
|
|
|
370
|
-
- name:
|
|
370
|
+
- name: getReportTemplateDetail
|
|
371
371
|
description: |
|
|
372
372
|
查看日志模板的详细字段和配置信息。
|
|
373
373
|
|
|
@@ -87,10 +87,21 @@ tools:
|
|
|
87
87
|
# 不需要模型处理
|
|
88
88
|
not_need_model_transform: true
|
|
89
89
|
- name: msgParam
|
|
90
|
-
type:
|
|
91
|
-
|
|
90
|
+
type: object
|
|
91
|
+
extendType: json
|
|
92
|
+
description: sampleMarkdown消息内容
|
|
92
93
|
position: body
|
|
93
94
|
required: true
|
|
95
|
+
items:
|
|
96
|
+
type: object
|
|
97
|
+
properties:
|
|
98
|
+
title:
|
|
99
|
+
type: string
|
|
100
|
+
description: 消息标题。
|
|
101
|
+
text:
|
|
102
|
+
type: string
|
|
103
|
+
description: 消息内容,markdown格式。
|
|
104
|
+
|
|
94
105
|
|
|
95
106
|
|
|
96
107
|
requestTemplate:
|
|
@@ -157,10 +168,21 @@ tools:
|
|
|
157
168
|
# 不需要模型处理
|
|
158
169
|
not_need_model_transform: true
|
|
159
170
|
- name: msgParam
|
|
160
|
-
type:
|
|
161
|
-
|
|
171
|
+
type: object
|
|
172
|
+
# 扩展类型,最终发送给API时,转换为json string
|
|
173
|
+
extendType: json
|
|
174
|
+
description: sampleMarkdown消息内容
|
|
162
175
|
position: body
|
|
163
176
|
required: true
|
|
177
|
+
items:
|
|
178
|
+
type: object
|
|
179
|
+
properties:
|
|
180
|
+
title:
|
|
181
|
+
type: string
|
|
182
|
+
description: 消息标题。
|
|
183
|
+
text:
|
|
184
|
+
type: string
|
|
185
|
+
description: 消息内容,markdown格式。
|
|
164
186
|
|
|
165
187
|
requestTemplate:
|
|
166
188
|
url: https://api.dingtalk.com/v1.0/robot/oToMessages/batchSend
|
|
@@ -207,28 +229,34 @@ tools:
|
|
|
207
229
|
default: markdown
|
|
208
230
|
# 不需要模型处理
|
|
209
231
|
not_need_model_transform: true
|
|
210
|
-
- name: markdown
|
|
211
|
-
type:
|
|
212
|
-
description: 消息标题。
|
|
232
|
+
- name: markdown
|
|
233
|
+
type: object
|
|
213
234
|
position: body
|
|
214
|
-
|
|
215
|
-
- name: markdown.text
|
|
216
|
-
type: string
|
|
217
|
-
description: 消息内容,markdown格式。
|
|
218
|
-
position: body
|
|
219
|
-
required: true
|
|
220
|
-
- name: at.isAtAll
|
|
221
|
-
type: boolean
|
|
222
|
-
default: false
|
|
223
|
-
description: 是否@所有人。
|
|
224
|
-
position: body
|
|
225
|
-
- name: at.atUserIds
|
|
226
|
-
type: array
|
|
235
|
+
description: markdown消息
|
|
227
236
|
items:
|
|
228
|
-
type:
|
|
229
|
-
|
|
237
|
+
type: object
|
|
238
|
+
properties:
|
|
239
|
+
title:
|
|
240
|
+
type: string
|
|
241
|
+
description: 消息标题。
|
|
242
|
+
text:
|
|
243
|
+
type: string
|
|
244
|
+
description: 消息内容,markdown格式。
|
|
245
|
+
- name: at
|
|
246
|
+
description: AT群成员
|
|
230
247
|
position: body
|
|
231
|
-
|
|
248
|
+
type: object
|
|
249
|
+
items:
|
|
250
|
+
type: object
|
|
251
|
+
properties:
|
|
252
|
+
isAtAll:
|
|
253
|
+
type: boolean
|
|
254
|
+
description: 是否AT所有人,默认为false。
|
|
255
|
+
atUserIds:
|
|
256
|
+
type: array
|
|
257
|
+
items:
|
|
258
|
+
type: string
|
|
259
|
+
description: 被AT的群成员userId。
|
|
232
260
|
|
|
233
261
|
requestTemplate:
|
|
234
262
|
url: https://oapi.dingtalk.com/robot/send?access_token=ROBOT_ACCESS_TOKEN
|
|
@@ -276,7 +276,7 @@ export class DingTalkMCPServer {
|
|
|
276
276
|
type: arg.type,
|
|
277
277
|
description: arg.description
|
|
278
278
|
};
|
|
279
|
-
if (arg.type === 'array' && arg.items) {
|
|
279
|
+
if ((arg.type === 'array' || arg.type === 'object' ) && arg.items) {
|
|
280
280
|
schema[arg.name].items = arg.items;
|
|
281
281
|
}
|
|
282
282
|
});
|
|
@@ -469,6 +469,12 @@ export class DingTalkMCPServer {
|
|
|
469
469
|
if (!args[arg.name]) {
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
+
|
|
473
|
+
if (arg.extendType === 'json'){
|
|
474
|
+
body[arg.name] = JSON.stringify(args[arg.name]);
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
|
|
472
478
|
//打平Object类型参数,递归处理
|
|
473
479
|
this.processMultiParam(body, arg.name, args[arg.name]);
|
|
474
480
|
|