@mclawnet/mcp-server 0.1.3 → 0.1.4

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,12 +1,565 @@
1
1
  import { type MemoryToolContext } from "./memory.js";
2
2
  import { type SkillToolContext } from "./skill.js";
3
3
  import { type EvolutionToolContext } from "./evolution.js";
4
+ import { type TaskToolContext } from "./task.js";
5
+ import { type InboxToolContext } from "./inbox.js";
6
+ import { type PlanReviewToolContext } from "./plan-review.js";
7
+ export type { InboxRelayLike, InboxToolContext } from "./inbox.js";
8
+ export type { PlanReviewToolContext } from "./plan-review.js";
4
9
  export interface ToolContext {
5
10
  memory: MemoryToolContext;
6
11
  skill: SkillToolContext;
7
12
  evolution: EvolutionToolContext;
13
+ task: TaskToolContext;
14
+ inbox: InboxToolContext;
15
+ planReview: PlanReviewToolContext;
8
16
  }
9
17
  export declare function getAllToolDefinitions(): ({
18
+ name: string;
19
+ description: string;
20
+ inputSchema: {
21
+ type: "object";
22
+ properties: {
23
+ workDir: {
24
+ type: string;
25
+ description: string;
26
+ };
27
+ teamName: {
28
+ type: string;
29
+ description: string;
30
+ };
31
+ subject: {
32
+ type: string;
33
+ description: string;
34
+ };
35
+ description: {
36
+ type: string;
37
+ description: string;
38
+ };
39
+ swarmId: {
40
+ type: string;
41
+ description: string;
42
+ };
43
+ owner: {
44
+ type: string;
45
+ description: string;
46
+ };
47
+ from: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ blockedBy: {
52
+ type: string;
53
+ items: {
54
+ type: string;
55
+ };
56
+ description: string;
57
+ };
58
+ sourceMessageId?: undefined;
59
+ sourceInstanceId?: undefined;
60
+ taskId?: undefined;
61
+ status?: undefined;
62
+ author?: undefined;
63
+ body?: undefined;
64
+ type?: undefined;
65
+ id?: undefined;
66
+ fromTaskId?: undefined;
67
+ toTaskId?: undefined;
68
+ instanceId?: undefined;
69
+ format?: undefined;
70
+ roleType?: undefined;
71
+ };
72
+ required: string[];
73
+ };
74
+ } | {
75
+ name: string;
76
+ description: string;
77
+ inputSchema: {
78
+ type: "object";
79
+ properties: {
80
+ workDir: {
81
+ type: string;
82
+ description: string;
83
+ };
84
+ teamName: {
85
+ type: string;
86
+ description: string;
87
+ };
88
+ subject: {
89
+ type: string;
90
+ description: string;
91
+ };
92
+ description: {
93
+ type: string;
94
+ description: string;
95
+ };
96
+ swarmId: {
97
+ type: string;
98
+ description: string;
99
+ };
100
+ owner: {
101
+ type: string;
102
+ description: string;
103
+ };
104
+ from: {
105
+ type: string;
106
+ description: string;
107
+ };
108
+ blockedBy: {
109
+ type: string;
110
+ items: {
111
+ type: string;
112
+ };
113
+ description: string;
114
+ };
115
+ sourceMessageId: {
116
+ type: string;
117
+ description: string;
118
+ };
119
+ sourceInstanceId: {
120
+ type: string;
121
+ description: string;
122
+ };
123
+ taskId?: undefined;
124
+ status?: undefined;
125
+ author?: undefined;
126
+ body?: undefined;
127
+ type?: undefined;
128
+ id?: undefined;
129
+ fromTaskId?: undefined;
130
+ toTaskId?: undefined;
131
+ instanceId?: undefined;
132
+ format?: undefined;
133
+ roleType?: undefined;
134
+ };
135
+ required: string[];
136
+ };
137
+ } | {
138
+ name: string;
139
+ description: string;
140
+ inputSchema: {
141
+ type: "object";
142
+ properties: {
143
+ workDir: {
144
+ type: string;
145
+ description: string;
146
+ };
147
+ taskId: {
148
+ type: string;
149
+ description: string;
150
+ };
151
+ teamName?: undefined;
152
+ subject?: undefined;
153
+ description?: undefined;
154
+ swarmId?: undefined;
155
+ owner?: undefined;
156
+ from?: undefined;
157
+ blockedBy?: undefined;
158
+ sourceMessageId?: undefined;
159
+ sourceInstanceId?: undefined;
160
+ status?: undefined;
161
+ author?: undefined;
162
+ body?: undefined;
163
+ type?: undefined;
164
+ id?: undefined;
165
+ fromTaskId?: undefined;
166
+ toTaskId?: undefined;
167
+ instanceId?: undefined;
168
+ format?: undefined;
169
+ roleType?: undefined;
170
+ };
171
+ required: string[];
172
+ };
173
+ } | {
174
+ name: string;
175
+ description: string;
176
+ inputSchema: {
177
+ type: "object";
178
+ properties: {
179
+ workDir: {
180
+ type: string;
181
+ description: string;
182
+ };
183
+ swarmId: {
184
+ type: string;
185
+ description: string;
186
+ };
187
+ status: {
188
+ type: string;
189
+ description: string;
190
+ enum?: undefined;
191
+ };
192
+ owner: {
193
+ type: string;
194
+ description: string;
195
+ };
196
+ teamName?: undefined;
197
+ subject?: undefined;
198
+ description?: undefined;
199
+ from?: undefined;
200
+ blockedBy?: undefined;
201
+ sourceMessageId?: undefined;
202
+ sourceInstanceId?: undefined;
203
+ taskId?: undefined;
204
+ author?: undefined;
205
+ body?: undefined;
206
+ type?: undefined;
207
+ id?: undefined;
208
+ fromTaskId?: undefined;
209
+ toTaskId?: undefined;
210
+ instanceId?: undefined;
211
+ format?: undefined;
212
+ roleType?: undefined;
213
+ };
214
+ required: string[];
215
+ };
216
+ } | {
217
+ name: string;
218
+ description: string;
219
+ inputSchema: {
220
+ type: "object";
221
+ properties: {
222
+ workDir: {
223
+ type: string;
224
+ description: string;
225
+ };
226
+ taskId: {
227
+ type: string;
228
+ description: string;
229
+ };
230
+ status: {
231
+ type: string;
232
+ enum: string[];
233
+ description: string;
234
+ };
235
+ teamName?: undefined;
236
+ subject?: undefined;
237
+ description?: undefined;
238
+ swarmId?: undefined;
239
+ owner?: undefined;
240
+ from?: undefined;
241
+ blockedBy?: undefined;
242
+ sourceMessageId?: undefined;
243
+ sourceInstanceId?: undefined;
244
+ author?: undefined;
245
+ body?: undefined;
246
+ type?: undefined;
247
+ id?: undefined;
248
+ fromTaskId?: undefined;
249
+ toTaskId?: undefined;
250
+ instanceId?: undefined;
251
+ format?: undefined;
252
+ roleType?: undefined;
253
+ };
254
+ required: string[];
255
+ };
256
+ } | {
257
+ name: string;
258
+ description: string;
259
+ inputSchema: {
260
+ type: "object";
261
+ properties: {
262
+ workDir: {
263
+ type: string;
264
+ description: string;
265
+ };
266
+ taskId: {
267
+ type: string;
268
+ description: string;
269
+ };
270
+ owner: {
271
+ type: string[];
272
+ description: string;
273
+ };
274
+ from: {
275
+ type: string;
276
+ description: string;
277
+ };
278
+ teamName?: undefined;
279
+ subject?: undefined;
280
+ description?: undefined;
281
+ swarmId?: undefined;
282
+ blockedBy?: undefined;
283
+ sourceMessageId?: undefined;
284
+ sourceInstanceId?: undefined;
285
+ status?: undefined;
286
+ author?: undefined;
287
+ body?: undefined;
288
+ type?: undefined;
289
+ id?: undefined;
290
+ fromTaskId?: undefined;
291
+ toTaskId?: undefined;
292
+ instanceId?: undefined;
293
+ format?: undefined;
294
+ roleType?: undefined;
295
+ };
296
+ required: string[];
297
+ };
298
+ } | {
299
+ name: string;
300
+ description: string;
301
+ inputSchema: {
302
+ type: "object";
303
+ properties: {
304
+ workDir: {
305
+ type: string;
306
+ description: string;
307
+ };
308
+ taskId: {
309
+ type: string;
310
+ description: string;
311
+ };
312
+ author: {
313
+ type: string;
314
+ description: string;
315
+ };
316
+ body: {
317
+ type: string;
318
+ description: string;
319
+ };
320
+ type: {
321
+ type: string;
322
+ description: string;
323
+ };
324
+ id: {
325
+ type: string;
326
+ description: string;
327
+ };
328
+ teamName?: undefined;
329
+ subject?: undefined;
330
+ description?: undefined;
331
+ swarmId?: undefined;
332
+ owner?: undefined;
333
+ from?: undefined;
334
+ blockedBy?: undefined;
335
+ sourceMessageId?: undefined;
336
+ sourceInstanceId?: undefined;
337
+ status?: undefined;
338
+ fromTaskId?: undefined;
339
+ toTaskId?: undefined;
340
+ instanceId?: undefined;
341
+ format?: undefined;
342
+ roleType?: undefined;
343
+ };
344
+ required: string[];
345
+ };
346
+ } | {
347
+ name: string;
348
+ description: string;
349
+ inputSchema: {
350
+ type: "object";
351
+ properties: {
352
+ workDir: {
353
+ type: string;
354
+ description: string;
355
+ };
356
+ fromTaskId: {
357
+ type: string;
358
+ description: string;
359
+ };
360
+ toTaskId: {
361
+ type: string;
362
+ description: string;
363
+ };
364
+ teamName?: undefined;
365
+ subject?: undefined;
366
+ description?: undefined;
367
+ swarmId?: undefined;
368
+ owner?: undefined;
369
+ from?: undefined;
370
+ blockedBy?: undefined;
371
+ sourceMessageId?: undefined;
372
+ sourceInstanceId?: undefined;
373
+ taskId?: undefined;
374
+ status?: undefined;
375
+ author?: undefined;
376
+ body?: undefined;
377
+ type?: undefined;
378
+ id?: undefined;
379
+ instanceId?: undefined;
380
+ format?: undefined;
381
+ roleType?: undefined;
382
+ };
383
+ required: string[];
384
+ };
385
+ } | {
386
+ name: string;
387
+ description: string;
388
+ inputSchema: {
389
+ type: "object";
390
+ properties: {
391
+ workDir: {
392
+ type: string;
393
+ description: string;
394
+ };
395
+ swarmId: {
396
+ type: string;
397
+ description: string;
398
+ };
399
+ instanceId: {
400
+ type: string;
401
+ description: string;
402
+ };
403
+ format: {
404
+ type: string;
405
+ enum: string[];
406
+ description: string;
407
+ default: string;
408
+ };
409
+ teamName?: undefined;
410
+ subject?: undefined;
411
+ description?: undefined;
412
+ owner?: undefined;
413
+ from?: undefined;
414
+ blockedBy?: undefined;
415
+ sourceMessageId?: undefined;
416
+ sourceInstanceId?: undefined;
417
+ taskId?: undefined;
418
+ status?: undefined;
419
+ author?: undefined;
420
+ body?: undefined;
421
+ type?: undefined;
422
+ id?: undefined;
423
+ fromTaskId?: undefined;
424
+ toTaskId?: undefined;
425
+ roleType?: undefined;
426
+ };
427
+ required: string[];
428
+ };
429
+ } | {
430
+ name: string;
431
+ description: string;
432
+ inputSchema: {
433
+ type: "object";
434
+ properties: {
435
+ workDir: {
436
+ type: string;
437
+ description: string;
438
+ };
439
+ swarmId: {
440
+ type: string;
441
+ description: string;
442
+ };
443
+ format: {
444
+ type: string;
445
+ enum: string[];
446
+ description: string;
447
+ default: string;
448
+ };
449
+ teamName?: undefined;
450
+ subject?: undefined;
451
+ description?: undefined;
452
+ owner?: undefined;
453
+ from?: undefined;
454
+ blockedBy?: undefined;
455
+ sourceMessageId?: undefined;
456
+ sourceInstanceId?: undefined;
457
+ taskId?: undefined;
458
+ status?: undefined;
459
+ author?: undefined;
460
+ body?: undefined;
461
+ type?: undefined;
462
+ id?: undefined;
463
+ fromTaskId?: undefined;
464
+ toTaskId?: undefined;
465
+ instanceId?: undefined;
466
+ roleType?: undefined;
467
+ };
468
+ required: string[];
469
+ };
470
+ } | {
471
+ name: string;
472
+ description: string;
473
+ inputSchema: {
474
+ type: "object";
475
+ properties: {
476
+ workDir: {
477
+ type: string;
478
+ description: string;
479
+ };
480
+ swarmId: {
481
+ type: string;
482
+ description: string;
483
+ };
484
+ instanceId: {
485
+ type: string;
486
+ description: string;
487
+ };
488
+ roleType: {
489
+ type: string;
490
+ description: string;
491
+ };
492
+ format: {
493
+ type: string;
494
+ enum: string[];
495
+ description: string;
496
+ default: string;
497
+ };
498
+ teamName?: undefined;
499
+ subject?: undefined;
500
+ description?: undefined;
501
+ owner?: undefined;
502
+ from?: undefined;
503
+ blockedBy?: undefined;
504
+ sourceMessageId?: undefined;
505
+ sourceInstanceId?: undefined;
506
+ taskId?: undefined;
507
+ status?: undefined;
508
+ author?: undefined;
509
+ body?: undefined;
510
+ type?: undefined;
511
+ id?: undefined;
512
+ fromTaskId?: undefined;
513
+ toTaskId?: undefined;
514
+ };
515
+ required: string[];
516
+ };
517
+ } | {
518
+ name: string;
519
+ description: string;
520
+ inputSchema: {
521
+ type: "object";
522
+ properties: {
523
+ workDir: {
524
+ type: string;
525
+ description: string;
526
+ };
527
+ swarmId: {
528
+ type: string;
529
+ description: string;
530
+ };
531
+ from: {
532
+ type: string;
533
+ description: string;
534
+ };
535
+ to: {
536
+ type: string;
537
+ description: string;
538
+ };
539
+ type: {
540
+ type: string;
541
+ description: string;
542
+ };
543
+ data: {
544
+ type: string;
545
+ description: string;
546
+ };
547
+ taskId: {
548
+ type: string;
549
+ description: string;
550
+ };
551
+ expectedStatus: {
552
+ type: string;
553
+ description: string;
554
+ };
555
+ expectedOwner: {
556
+ type: string[];
557
+ description: string;
558
+ };
559
+ };
560
+ required: string[];
561
+ };
562
+ } | {
10
563
  name: string;
11
564
  description: string;
12
565
  inputSchema: {
@@ -215,6 +768,36 @@ export declare function getAllToolDefinitions(): ({
215
768
  };
216
769
  required: string[];
217
770
  };
771
+ } | {
772
+ name: string;
773
+ description: string;
774
+ inputSchema: {
775
+ type: "object";
776
+ properties: {
777
+ workDir: {
778
+ type: string;
779
+ description: string;
780
+ };
781
+ swarmId: {
782
+ type: string;
783
+ description: string;
784
+ };
785
+ from: {
786
+ type: string;
787
+ description: string;
788
+ };
789
+ verdict: {
790
+ type: string;
791
+ enum: string[];
792
+ description: string;
793
+ };
794
+ body: {
795
+ type: string;
796
+ description: string;
797
+ };
798
+ };
799
+ required: string[];
800
+ };
218
801
  })[];
219
802
  export declare function routeToolCall(name: string, args: Record<string, unknown>, context: ToolContext): Promise<{
220
803
  content: Array<{
@@ -226,4 +809,5 @@ export declare function routeToolCall(name: string, args: Record<string, unknown
226
809
  export type { MemoryToolContext } from "./memory.js";
227
810
  export type { SkillToolContext } from "./skill.js";
228
811
  export type { EvolutionToolContext } from "./evolution.js";
812
+ export type { TaskToolContext } from "./task.js";
229
813
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,EAAgD,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACjG,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED,wBAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CA0BhF;AAED,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
@@ -1,11 +1,17 @@
1
1
  import { getMemoryToolDefinitions, handleMemoryToolCall } from "./memory.js";
2
2
  import { getSkillToolDefinitions, handleSkillToolCall } from "./skill.js";
3
3
  import { getEvolutionToolDefinitions, handleEvolutionToolCall, } from "./evolution.js";
4
+ import { getTaskToolDefinitions, handleTaskToolCall, TASK_TOOL_NAMES, } from "./task.js";
5
+ import { getInboxToolDefinitions, handleInboxToolCall, INBOX_TOOL_NAMES, } from "./inbox.js";
6
+ import { getPlanReviewToolDefinitions, handlePlanReviewToolCall, PLAN_REVIEW_TOOL_NAMES, } from "./plan-review.js";
4
7
  export function getAllToolDefinitions() {
5
8
  return [
6
9
  ...getMemoryToolDefinitions(),
7
10
  ...getSkillToolDefinitions(),
8
11
  ...getEvolutionToolDefinitions(),
12
+ ...getTaskToolDefinitions(),
13
+ ...getInboxToolDefinitions(),
14
+ ...getPlanReviewToolDefinitions(),
9
15
  ];
10
16
  }
11
17
  export async function routeToolCall(name, args, context) {
@@ -18,6 +24,17 @@ export async function routeToolCall(name, args, context) {
18
24
  if (name.startsWith("skill_")) {
19
25
  return handleSkillToolCall(name, args, context.skill);
20
26
  }
27
+ if (TASK_TOOL_NAMES.has(name)) {
28
+ return handleTaskToolCall(name, args, { ...context.task, inbox: context.inbox });
29
+ }
30
+ if (INBOX_TOOL_NAMES.has(name)) {
31
+ // Wire task.rootDir into the inbox handler so message_send can validate
32
+ // optional expectedStatus / expectedOwner pre-checks against the live task.
33
+ return handleInboxToolCall(name, args, { ...context.inbox, taskRootDir: context.task.rootDir });
34
+ }
35
+ if (PLAN_REVIEW_TOOL_NAMES.has(name)) {
36
+ return handlePlanReviewToolCall(name, args, context.planReview);
37
+ }
21
38
  return {
22
39
  content: [{ type: "text", text: JSON.stringify({ error: `Unknown tool: ${name}` }) }],
23
40
  isError: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAA0B,MAAM,aAAa,CAAC;AACrG,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAyB,MAAM,YAAY,CAAC;AACjG,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,GAExB,MAAM,gBAAgB,CAAC;AAQxB,MAAM,UAAU,qBAAqB;IACnC,OAAO;QACL,GAAG,wBAAwB,EAAE;QAC7B,GAAG,uBAAuB,EAAE;QAC5B,GAAG,2BAA2B,EAAE;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,IAAY,EACZ,IAA6B,EAC7B,OAAoB;IAEpB,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/B,OAAO,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;IACD,IAAI,IAAI,KAAK,cAAc,IAAI,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QAChE,OAAO,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;IACD,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9B,OAAO,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,CAA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