1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "servers": [
12 {
13 "name": "public-mcp-fixture-smoke",
14 "url": "https://raw.githubusercontent.com/erenmyeager15/mcp-trust-rug-pull-monitor/master/src/__fixtures__/mcp-manifest.json",
15 "transport": "static_json",
16 "enabled": true,
17 "tags": [
18 "public-demo"
19 ]
20 }
21 ],
22 "authorizedUseConfirmed": true,
23 "baselineMode": "compare_only",
24 "promoteCandidateBaseline": false,
25 "minimumAlertSeverity": "critical",
26 "checkVulnerabilities": false,
27 "checkTls": false,
28 "includeRawNormalizedSnapshot": false,
29 "requestTimeoutSeconds": 3,
30 "maxRetries": 0,
31 "concurrency": 1,
32 "dryRun": true,
33 "allowHttp": false,
34 "allowPrivateNetwork": false,
35 "maxResponseBytes": 16384
36};
37
38
39const run = await client.actor("fascinating_lentil/mcp-trust-rug-pull-monitor").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49