1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "url": "https://mcp.example.com/mcp",
10 "evaluationSet": {
11 "schema": "mcp-proof/evaluation-set/1",
12 "name": "my-smoke-set",
13 "version": "1.0.0",
14 "expectedTools": ["lookup_zip"],
15 "cases": [{
16 "id": "zip-97201-portland",
17 "tool": "lookup_zip",
18 "arguments": { "zip": "97201" },
19 "expect": {
20 "kind": "textContainsAll",
21 "values": ["Portland"],
22 },
23 }],
24 },
25}
26
27
28run = client.actor("savagnic/mcp-proof").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35