@apify/actors-mcp-server 0.5.9 → 0.6.0

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.
Files changed (98) hide show
  1. package/README.md +2 -2
  2. package/dist/actor/types.d.ts +2 -2
  3. package/dist/actor/types.d.ts.map +1 -1
  4. package/dist/apify-client.d.ts +2 -2
  5. package/dist/apify-client.d.ts.map +1 -1
  6. package/dist/const.d.ts +13 -3
  7. package/dist/const.d.ts.map +1 -1
  8. package/dist/const.js +55 -1
  9. package/dist/const.js.map +1 -1
  10. package/dist/mcp/server.d.ts +1 -1
  11. package/dist/mcp/server.d.ts.map +1 -1
  12. package/dist/mcp/server.js +33 -15
  13. package/dist/mcp/server.js.map +1 -1
  14. package/dist/stdio.js.map +1 -1
  15. package/dist/telemetry.d.ts +1 -2
  16. package/dist/telemetry.d.ts.map +1 -1
  17. package/dist/telemetry.js.map +1 -1
  18. package/dist/tools/actor.d.ts.map +1 -1
  19. package/dist/tools/actor.js +47 -19
  20. package/dist/tools/actor.js.map +1 -1
  21. package/dist/tools/build.d.ts +2 -6
  22. package/dist/tools/build.d.ts.map +1 -1
  23. package/dist/tools/build.js +1 -59
  24. package/dist/tools/build.js.map +1 -1
  25. package/dist/tools/dataset.d.ts.map +1 -1
  26. package/dist/tools/dataset.js +23 -5
  27. package/dist/tools/dataset.js.map +1 -1
  28. package/dist/tools/fetch-actor-details.d.ts.map +1 -1
  29. package/dist/tools/fetch-actor-details.js +15 -6
  30. package/dist/tools/fetch-actor-details.js.map +1 -1
  31. package/dist/tools/fetch-apify-docs.d.ts.map +1 -1
  32. package/dist/tools/fetch-apify-docs.js +23 -8
  33. package/dist/tools/fetch-apify-docs.js.map +1 -1
  34. package/dist/tools/get-actor-output.d.ts.map +1 -1
  35. package/dist/tools/get-actor-output.js +7 -2
  36. package/dist/tools/get-actor-output.js.map +1 -1
  37. package/dist/tools/get-html-skeleton.d.ts.map +1 -1
  38. package/dist/tools/get-html-skeleton.js +19 -6
  39. package/dist/tools/get-html-skeleton.js.map +1 -1
  40. package/dist/tools/run.d.ts.map +1 -1
  41. package/dist/tools/run.js +8 -3
  42. package/dist/tools/run.js.map +1 -1
  43. package/dist/tools/run_collection.d.ts.map +1 -1
  44. package/dist/tools/run_collection.js +4 -1
  45. package/dist/tools/run_collection.js.map +1 -1
  46. package/dist/tools/search-apify-docs.d.ts.map +1 -1
  47. package/dist/tools/search-apify-docs.js +14 -4
  48. package/dist/tools/search-apify-docs.js.map +1 -1
  49. package/dist/tools/store_collection.d.ts.map +1 -1
  50. package/dist/tools/store_collection.js +24 -12
  51. package/dist/tools/store_collection.js.map +1 -1
  52. package/dist/tools/structured-output-schemas.d.ts +675 -0
  53. package/dist/tools/structured-output-schemas.d.ts.map +1 -0
  54. package/dist/tools/structured-output-schemas.js +169 -0
  55. package/dist/tools/structured-output-schemas.js.map +1 -0
  56. package/dist/tools/utils.d.ts +23 -23
  57. package/dist/tools/utils.d.ts.map +1 -1
  58. package/dist/tools/utils.js +7 -7
  59. package/dist/tools/utils.js.map +1 -1
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/dist/types.d.ts +68 -35
  62. package/dist/types.d.ts.map +1 -1
  63. package/dist/utils/actor-card.d.ts +7 -1
  64. package/dist/utils/actor-card.d.ts.map +1 -1
  65. package/dist/utils/actor-card.js +69 -1
  66. package/dist/utils/actor-card.js.map +1 -1
  67. package/dist/utils/actor-details.d.ts +5 -4
  68. package/dist/utils/actor-details.d.ts.map +1 -1
  69. package/dist/utils/actor-details.js +3 -1
  70. package/dist/utils/actor-details.js.map +1 -1
  71. package/dist/utils/apify-properties.d.ts +7 -7
  72. package/dist/utils/apify-properties.d.ts.map +1 -1
  73. package/dist/utils/apify-properties.js.map +1 -1
  74. package/dist/utils/mcp-clients.d.ts +1 -1
  75. package/dist/utils/mcp-clients.d.ts.map +1 -1
  76. package/dist/utils/mcp.d.ts +18 -4
  77. package/dist/utils/mcp.d.ts.map +1 -1
  78. package/dist/utils/mcp.js +20 -4
  79. package/dist/utils/mcp.js.map +1 -1
  80. package/dist/utils/pricing-info.d.ts +29 -0
  81. package/dist/utils/pricing-info.d.ts.map +1 -1
  82. package/dist/utils/pricing-info.js +50 -0
  83. package/dist/utils/pricing-info.js.map +1 -1
  84. package/dist/utils/schema-generation.d.ts +6 -6
  85. package/dist/utils/schema-generation.d.ts.map +1 -1
  86. package/dist/utils/schema-generation.js +2 -4
  87. package/dist/utils/schema-generation.js.map +1 -1
  88. package/dist/utils/tool-status.d.ts +10 -0
  89. package/dist/utils/tool-status.d.ts.map +1 -0
  90. package/dist/utils/tool-status.js +27 -0
  91. package/dist/utils/tool-status.js.map +1 -0
  92. package/dist/utils/tools.d.ts +11 -0
  93. package/dist/utils/tools.d.ts.map +1 -1
  94. package/dist/utils/tools.js +3 -0
  95. package/dist/utils/tools.js.map +1 -1
  96. package/manifest.json +1 -1
  97. package/package.json +3 -5
  98. package/server.json +1 -1
@@ -0,0 +1,675 @@
1
+ /**
2
+ * Shared JSON schema definitions for structured output across tools.
3
+ * These schemas define the format of structured data returned by various tools.
4
+ */
5
+ /**
6
+ * Schema for pricing information
7
+ */
8
+ export declare const pricingSchema: {
9
+ type: "object";
10
+ properties: {
11
+ model: {
12
+ type: string;
13
+ description: string;
14
+ };
15
+ isFree: {
16
+ type: string;
17
+ description: string;
18
+ };
19
+ pricePerUnit: {
20
+ type: string;
21
+ description: string;
22
+ };
23
+ unitName: {
24
+ type: string;
25
+ description: string;
26
+ };
27
+ trialMinutes: {
28
+ type: string;
29
+ description: string;
30
+ };
31
+ tieredPricing: {
32
+ type: "array";
33
+ items: {
34
+ type: "object";
35
+ properties: {
36
+ tier: {
37
+ type: string;
38
+ description: string;
39
+ };
40
+ pricePerUnit: {
41
+ type: string;
42
+ description: string;
43
+ };
44
+ };
45
+ };
46
+ description: string;
47
+ };
48
+ events: {
49
+ type: "array";
50
+ items: {
51
+ type: "object";
52
+ properties: {
53
+ title: {
54
+ type: string;
55
+ description: string;
56
+ };
57
+ description: {
58
+ type: string;
59
+ description: string;
60
+ };
61
+ priceUsd: {
62
+ type: string;
63
+ description: string;
64
+ };
65
+ tieredPricing: {
66
+ type: "array";
67
+ items: {
68
+ type: "object";
69
+ properties: {
70
+ tier: {
71
+ type: string;
72
+ };
73
+ priceUsd: {
74
+ type: string;
75
+ };
76
+ };
77
+ };
78
+ };
79
+ };
80
+ };
81
+ description: string;
82
+ };
83
+ };
84
+ required: string[];
85
+ };
86
+ /**
87
+ * Schema for Actor statistics
88
+ */
89
+ export declare const statsSchema: {
90
+ type: "object";
91
+ properties: {
92
+ totalUsers: {
93
+ type: string;
94
+ description: string;
95
+ };
96
+ monthlyUsers: {
97
+ type: string;
98
+ description: string;
99
+ };
100
+ successRate: {
101
+ type: string;
102
+ description: string;
103
+ };
104
+ bookmarks: {
105
+ type: string;
106
+ description: string;
107
+ };
108
+ };
109
+ };
110
+ /**
111
+ * Schema for Actor information (card)
112
+ * Used in both search results and detailed Actor info
113
+ */
114
+ export declare const actorInfoSchema: {
115
+ type: "object";
116
+ properties: {
117
+ title: {
118
+ type: string;
119
+ description: string;
120
+ };
121
+ url: {
122
+ type: string;
123
+ description: string;
124
+ };
125
+ fullName: {
126
+ type: string;
127
+ description: string;
128
+ };
129
+ developer: {
130
+ type: "object";
131
+ properties: {
132
+ username: {
133
+ type: string;
134
+ description: string;
135
+ };
136
+ isOfficialApify: {
137
+ type: string;
138
+ description: string;
139
+ };
140
+ url: {
141
+ type: string;
142
+ description: string;
143
+ };
144
+ };
145
+ required: string[];
146
+ };
147
+ description: {
148
+ type: string;
149
+ description: string;
150
+ };
151
+ categories: {
152
+ type: "array";
153
+ items: {
154
+ type: string;
155
+ };
156
+ description: string;
157
+ };
158
+ pricing: {
159
+ type: "object";
160
+ properties: {
161
+ model: {
162
+ type: string;
163
+ description: string;
164
+ };
165
+ isFree: {
166
+ type: string;
167
+ description: string;
168
+ };
169
+ pricePerUnit: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ unitName: {
174
+ type: string;
175
+ description: string;
176
+ };
177
+ trialMinutes: {
178
+ type: string;
179
+ description: string;
180
+ };
181
+ tieredPricing: {
182
+ type: "array";
183
+ items: {
184
+ type: "object";
185
+ properties: {
186
+ tier: {
187
+ type: string;
188
+ description: string;
189
+ };
190
+ pricePerUnit: {
191
+ type: string;
192
+ description: string;
193
+ };
194
+ };
195
+ };
196
+ description: string;
197
+ };
198
+ events: {
199
+ type: "array";
200
+ items: {
201
+ type: "object";
202
+ properties: {
203
+ title: {
204
+ type: string;
205
+ description: string;
206
+ };
207
+ description: {
208
+ type: string;
209
+ description: string;
210
+ };
211
+ priceUsd: {
212
+ type: string;
213
+ description: string;
214
+ };
215
+ tieredPricing: {
216
+ type: "array";
217
+ items: {
218
+ type: "object";
219
+ properties: {
220
+ tier: {
221
+ type: string;
222
+ };
223
+ priceUsd: {
224
+ type: string;
225
+ };
226
+ };
227
+ };
228
+ };
229
+ };
230
+ };
231
+ description: string;
232
+ };
233
+ };
234
+ required: string[];
235
+ };
236
+ stats: {
237
+ type: "object";
238
+ properties: {
239
+ totalUsers: {
240
+ type: string;
241
+ description: string;
242
+ };
243
+ monthlyUsers: {
244
+ type: string;
245
+ description: string;
246
+ };
247
+ successRate: {
248
+ type: string;
249
+ description: string;
250
+ };
251
+ bookmarks: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ };
256
+ };
257
+ rating: {
258
+ type: string;
259
+ description: string;
260
+ };
261
+ modifiedAt: {
262
+ type: string;
263
+ description: string;
264
+ };
265
+ isDeprecated: {
266
+ type: string;
267
+ description: string;
268
+ };
269
+ };
270
+ required: string[];
271
+ };
272
+ /**
273
+ * Schema for Actor details output (fetch-actor-details tool)
274
+ */
275
+ export declare const actorDetailsOutputSchema: {
276
+ type: "object";
277
+ properties: {
278
+ actorInfo: {
279
+ type: "object";
280
+ properties: {
281
+ title: {
282
+ type: string;
283
+ description: string;
284
+ };
285
+ url: {
286
+ type: string;
287
+ description: string;
288
+ };
289
+ fullName: {
290
+ type: string;
291
+ description: string;
292
+ };
293
+ developer: {
294
+ type: "object";
295
+ properties: {
296
+ username: {
297
+ type: string;
298
+ description: string;
299
+ };
300
+ isOfficialApify: {
301
+ type: string;
302
+ description: string;
303
+ };
304
+ url: {
305
+ type: string;
306
+ description: string;
307
+ };
308
+ };
309
+ required: string[];
310
+ };
311
+ description: {
312
+ type: string;
313
+ description: string;
314
+ };
315
+ categories: {
316
+ type: "array";
317
+ items: {
318
+ type: string;
319
+ };
320
+ description: string;
321
+ };
322
+ pricing: {
323
+ type: "object";
324
+ properties: {
325
+ model: {
326
+ type: string;
327
+ description: string;
328
+ };
329
+ isFree: {
330
+ type: string;
331
+ description: string;
332
+ };
333
+ pricePerUnit: {
334
+ type: string;
335
+ description: string;
336
+ };
337
+ unitName: {
338
+ type: string;
339
+ description: string;
340
+ };
341
+ trialMinutes: {
342
+ type: string;
343
+ description: string;
344
+ };
345
+ tieredPricing: {
346
+ type: "array";
347
+ items: {
348
+ type: "object";
349
+ properties: {
350
+ tier: {
351
+ type: string;
352
+ description: string;
353
+ };
354
+ pricePerUnit: {
355
+ type: string;
356
+ description: string;
357
+ };
358
+ };
359
+ };
360
+ description: string;
361
+ };
362
+ events: {
363
+ type: "array";
364
+ items: {
365
+ type: "object";
366
+ properties: {
367
+ title: {
368
+ type: string;
369
+ description: string;
370
+ };
371
+ description: {
372
+ type: string;
373
+ description: string;
374
+ };
375
+ priceUsd: {
376
+ type: string;
377
+ description: string;
378
+ };
379
+ tieredPricing: {
380
+ type: "array";
381
+ items: {
382
+ type: "object";
383
+ properties: {
384
+ tier: {
385
+ type: string;
386
+ };
387
+ priceUsd: {
388
+ type: string;
389
+ };
390
+ };
391
+ };
392
+ };
393
+ };
394
+ };
395
+ description: string;
396
+ };
397
+ };
398
+ required: string[];
399
+ };
400
+ stats: {
401
+ type: "object";
402
+ properties: {
403
+ totalUsers: {
404
+ type: string;
405
+ description: string;
406
+ };
407
+ monthlyUsers: {
408
+ type: string;
409
+ description: string;
410
+ };
411
+ successRate: {
412
+ type: string;
413
+ description: string;
414
+ };
415
+ bookmarks: {
416
+ type: string;
417
+ description: string;
418
+ };
419
+ };
420
+ };
421
+ rating: {
422
+ type: string;
423
+ description: string;
424
+ };
425
+ modifiedAt: {
426
+ type: string;
427
+ description: string;
428
+ };
429
+ isDeprecated: {
430
+ type: string;
431
+ description: string;
432
+ };
433
+ };
434
+ required: string[];
435
+ };
436
+ readme: {
437
+ type: string;
438
+ description: string;
439
+ };
440
+ inputSchema: {
441
+ type: "object";
442
+ description: string;
443
+ };
444
+ };
445
+ required: string[];
446
+ };
447
+ /**
448
+ * Schema for search results output (store-search tool)
449
+ */
450
+ export declare const actorSearchOutputSchema: {
451
+ type: "object";
452
+ properties: {
453
+ actors: {
454
+ type: "array";
455
+ items: {
456
+ type: "object";
457
+ properties: {
458
+ title: {
459
+ type: string;
460
+ description: string;
461
+ };
462
+ url: {
463
+ type: string;
464
+ description: string;
465
+ };
466
+ fullName: {
467
+ type: string;
468
+ description: string;
469
+ };
470
+ developer: {
471
+ type: "object";
472
+ properties: {
473
+ username: {
474
+ type: string;
475
+ description: string;
476
+ };
477
+ isOfficialApify: {
478
+ type: string;
479
+ description: string;
480
+ };
481
+ url: {
482
+ type: string;
483
+ description: string;
484
+ };
485
+ };
486
+ required: string[];
487
+ };
488
+ description: {
489
+ type: string;
490
+ description: string;
491
+ };
492
+ categories: {
493
+ type: "array";
494
+ items: {
495
+ type: string;
496
+ };
497
+ description: string;
498
+ };
499
+ pricing: {
500
+ type: "object";
501
+ properties: {
502
+ model: {
503
+ type: string;
504
+ description: string;
505
+ };
506
+ isFree: {
507
+ type: string;
508
+ description: string;
509
+ };
510
+ pricePerUnit: {
511
+ type: string;
512
+ description: string;
513
+ };
514
+ unitName: {
515
+ type: string;
516
+ description: string;
517
+ };
518
+ trialMinutes: {
519
+ type: string;
520
+ description: string;
521
+ };
522
+ tieredPricing: {
523
+ type: "array";
524
+ items: {
525
+ type: "object";
526
+ properties: {
527
+ tier: {
528
+ type: string;
529
+ description: string;
530
+ };
531
+ pricePerUnit: {
532
+ type: string;
533
+ description: string;
534
+ };
535
+ };
536
+ };
537
+ description: string;
538
+ };
539
+ events: {
540
+ type: "array";
541
+ items: {
542
+ type: "object";
543
+ properties: {
544
+ title: {
545
+ type: string;
546
+ description: string;
547
+ };
548
+ description: {
549
+ type: string;
550
+ description: string;
551
+ };
552
+ priceUsd: {
553
+ type: string;
554
+ description: string;
555
+ };
556
+ tieredPricing: {
557
+ type: "array";
558
+ items: {
559
+ type: "object";
560
+ properties: {
561
+ tier: {
562
+ type: string;
563
+ };
564
+ priceUsd: {
565
+ type: string;
566
+ };
567
+ };
568
+ };
569
+ };
570
+ };
571
+ };
572
+ description: string;
573
+ };
574
+ };
575
+ required: string[];
576
+ };
577
+ stats: {
578
+ type: "object";
579
+ properties: {
580
+ totalUsers: {
581
+ type: string;
582
+ description: string;
583
+ };
584
+ monthlyUsers: {
585
+ type: string;
586
+ description: string;
587
+ };
588
+ successRate: {
589
+ type: string;
590
+ description: string;
591
+ };
592
+ bookmarks: {
593
+ type: string;
594
+ description: string;
595
+ };
596
+ };
597
+ };
598
+ rating: {
599
+ type: string;
600
+ description: string;
601
+ };
602
+ modifiedAt: {
603
+ type: string;
604
+ description: string;
605
+ };
606
+ isDeprecated: {
607
+ type: string;
608
+ description: string;
609
+ };
610
+ };
611
+ required: string[];
612
+ };
613
+ description: string;
614
+ };
615
+ query: {
616
+ type: string;
617
+ description: string;
618
+ };
619
+ count: {
620
+ type: string;
621
+ description: string;
622
+ };
623
+ instructions: {
624
+ type: string;
625
+ description: string;
626
+ };
627
+ };
628
+ required: string[];
629
+ };
630
+ export declare const searchApifyDocsToolOutputSchema: {
631
+ type: "object";
632
+ properties: {
633
+ results: {
634
+ type: "array";
635
+ items: {
636
+ type: "object";
637
+ properties: {
638
+ url: {
639
+ type: string;
640
+ description: string;
641
+ };
642
+ fragment: {
643
+ type: string;
644
+ description: string;
645
+ };
646
+ content: {
647
+ type: string;
648
+ description: string;
649
+ };
650
+ };
651
+ required: string[];
652
+ };
653
+ };
654
+ instructions: {
655
+ type: string;
656
+ description: string;
657
+ };
658
+ };
659
+ required: string[];
660
+ };
661
+ export declare const fetchApifyDocsToolOutputSchema: {
662
+ type: "object";
663
+ properties: {
664
+ url: {
665
+ type: string;
666
+ description: string;
667
+ };
668
+ content: {
669
+ type: string;
670
+ description: string;
671
+ };
672
+ };
673
+ required: string[];
674
+ };
675
+ //# sourceMappingURL=structured-output-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structured-output-schemas.d.ts","sourceRoot":"","sources":["../../src/tools/structured-output-schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6DH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAQvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB3C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;CAO1C,CAAC"}