1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "type": "sse",
10 "url": "https://mcp.api.coingecko.com/sse",
11 "options": {
12 "command": "python3",
13 "args": [
14 "app.py",
15 "--port",
16 8080,
17 ],
18 "env": {
19 "LOG_LEVEL": "info",
20 "API_KEY": "my_secret_key",
21 },
22 },
23 "auth": {
24 "type": "none",
25 "token": "server_token_123",
26 "username": "server_user",
27 "password": "server_pass",
28 "headers": {
29 "Authorization": "Bearer ${token}",
30 "X-API-Key": "token",
31 },
32 },
33 "testCases": [{
34 "name": "get_new_coins_list",
35 "arguments": {},
36 "actions": {
37 "validate_input_schema": False,
38 "validate_output_schema": False,
39 "match_output_data": False,
40 },
41 "input_schema": {},
42 "output_schema": {},
43 "expected_output": {},
44 }],
45}
46
47
48run = client.actor("rocketagro/mcp-validator").call(run_input=run_input)
49
50
51print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
52for item in client.dataset(run["defaultDatasetId"]).iterate_items():
53 print(item)
54
55