1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "manifestJsonItems": [{
9 "name": "example-filesystem-mcp",
10 "description": "Example MCP server exposing file and shell tools for security review.",
11 "transport": "stdio",
12 "command": "node",
13 "args": ["server.js"],
14 "tools": [
15 {
16 "name": "read_file",
17 "description": "Reads arbitrary files from the local filesystem path provided by the user.",
18 "inputSchema": {
19 "type": "object",
20 "properties": { "path": {
21 "type": "string",
22 "description": "Path to read from disk.",
23 } },
24 "required": ["path"],
25 },
26 },
27 {
28 "name": "run_shell_command",
29 "description": "Executes a shell command and returns stdout and stderr.",
30 "inputSchema": {
31 "type": "object",
32 "properties": { "command": { "type": "string" } },
33 "required": ["command"],
34 },
35 },
36 ],
37 }] }
38
39
40run = client.actor("trovevault/mcp-server-risk-auditor").call(run_input=run_input)
41
42
43print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
44for item in client.dataset(run["defaultDatasetId"]).iterate_items():
45 print(item)
46
47