@mcpcn/mcp-notification 1.0.2 → 1.0.3
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.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -349,17 +349,17 @@ class NotificationServer {
|
|
|
349
349
|
tools: [
|
|
350
350
|
{
|
|
351
351
|
name: 'send_notification',
|
|
352
|
-
description: '
|
|
352
|
+
description: '发送系统通知或提醒',
|
|
353
353
|
inputSchema: {
|
|
354
354
|
type: 'object',
|
|
355
355
|
properties: {
|
|
356
356
|
title: {
|
|
357
357
|
type: 'string',
|
|
358
|
-
description: '
|
|
358
|
+
description: '通知或提醒的标题',
|
|
359
359
|
},
|
|
360
360
|
message: {
|
|
361
361
|
type: 'string',
|
|
362
|
-
description: '
|
|
362
|
+
description: '通知或提醒的内容',
|
|
363
363
|
},
|
|
364
364
|
subtitle: {
|
|
365
365
|
type: 'string',
|
|
@@ -367,7 +367,7 @@ class NotificationServer {
|
|
|
367
367
|
},
|
|
368
368
|
sound: {
|
|
369
369
|
type: 'boolean',
|
|
370
|
-
description: '
|
|
370
|
+
description: '是否播放默认提示音',
|
|
371
371
|
default: true,
|
|
372
372
|
},
|
|
373
373
|
delay: {
|
|
@@ -375,14 +375,14 @@ class NotificationServer {
|
|
|
375
375
|
{ type: 'number' },
|
|
376
376
|
{ type: 'string' }
|
|
377
377
|
],
|
|
378
|
-
description: '
|
|
378
|
+
description: '延迟发送通知或提醒(毫秒或时间字符串如"10s", "1m", "1h")',
|
|
379
379
|
},
|
|
380
380
|
repeat: {
|
|
381
381
|
oneOf: [
|
|
382
382
|
{ type: 'number' },
|
|
383
383
|
{ type: 'string' }
|
|
384
384
|
],
|
|
385
|
-
description: '
|
|
385
|
+
description: '重复通知或提醒的间隔(毫秒或时间字符串如"10s", "1m", "1h")',
|
|
386
386
|
},
|
|
387
387
|
repeatCount: {
|
|
388
388
|
type: 'number',
|
|
@@ -396,14 +396,14 @@ class NotificationServer {
|
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
name: 'notification_task_management',
|
|
399
|
-
description: '
|
|
399
|
+
description: '管理计划的通知或提醒任务',
|
|
400
400
|
inputSchema: {
|
|
401
401
|
type: 'object',
|
|
402
402
|
properties: {
|
|
403
403
|
action: {
|
|
404
404
|
type: 'string',
|
|
405
405
|
enum: ['stop_repeat_task', 'stop_all_repeat_tasks', 'get_active_repeat_tasks', 'get_repeat_task_info'],
|
|
406
|
-
description: 'stop_repeat_task:
|
|
406
|
+
description: 'stop_repeat_task: 停止指定的重复通知或提醒任务. stop_all_repeat_tasks: 停止所有重复通知或提醒任务. get_active_repeat_tasks: 获取所有活跃的重复通知或提醒任务. get_repeat_task_info: 获取指定重复通知或提醒任务的信息.'
|
|
407
407
|
},
|
|
408
408
|
taskId: {
|
|
409
409
|
type: 'string',
|