MCP 服务器

Agent Vending Factory

io.github.RubenTay/agent-vending-factory

此 MCP 可以做什么

Offers an isolated Python sandbox, structured data extraction, South African airport flight status, and live crypto/ZAR pricing tools.

tool_compute_sandbox
POST /tools/tool_compute_sandbox/run — Executes Python 3.12 code in an isolated subprocess with a 5-second hard timeout. Input: {python_code: string, input_data: any (optional, bound as variable 'input_data')}. Output: {success, result, stdout (capped 50KB), execution_time_ms, error_type}. Return value: assign to 'result' variable. Pre-loaded: math, json, re, statistics, itertools, functools, collections, decimal, datetime, random, hashlib, base64. Blocked: import, open(), eval(), exec(), os, sys, network, class definitions, dunder attributes. error_type values: syntax_error | security_error | runtime_error | timeout_error. Cost: $0.1500 USDC per call.
输入模式
{'type': 'object', 'required': ['python_code'], 'properties': {'input_data': {'description': "JSON-serializable value (dict, list, str, number, bool, or null) passed as the variable 'input_data' inside the sandbox. Omit or pass null if the code has no external input."}, 'python_code': {'type': 'string', 'description': "Python 3.12 source code to execute. No import statements. Set 'result = <value>' to return a value. Pre-loaded modules are in scope: math, json, re, statistics, itertools, functools, collections, decimal, datetime, random, string, textwrap, hashlib, base64, struct, copy, pprint."}}}
tool_data_transformer
POST /tools/tool_data_transformer/run — Extracts structured JSON from raw text using a caller-supplied JSON Schema. Input: {raw_text: string, target_json_schema: object (JSON Schema draft-07)}. Output: {success, extracted_data, extraction_method, validation_passed, error}. extraction_method is one of: 'direct_parse', 'embedded_json', 'regex_extraction'. No LLM involved — pure parsing pipeline. Type coercion applied for integer/number/boolean fields. Works best with flat schemas; deeply nested structures extract less reliably via key-value pass. Cost: $0.0500 USDC per call.
输入模式
{'type': 'object', 'required': ['raw_text', 'target_json_schema'], 'properties': {'raw_text': {'type': 'string', 'description': 'Unstructured or semi-structured text to extract data from. Examples: API response body, email content, log lines, form submissions, scraped web pages, or any text that contains the values you need.'}, 'target_json_schema': {'type': 'object', 'description': 'A JSON Schema object describing the expected output structure. Define \'properties\' with a \'type\' for each field you want extracted, and list required fields under \'required\'. Example: {"type": "object", "properties": {"name": {"type": "string"}, "age": {"type": "integer"}}, "required": ["name", "age"]}'}}}
tool_sa_airport_oracle
POST /tools/sa-airport-oracle/run — Returns live flight status from ACSA (airports.co.za). Input: {airport_code: 'JNB'|'CPT'|'DUR', flight_number: string, request_type: 'arrival'|'departure'}. Output: {success, live_status, scheduled_time, estimated_time, actual_time, gate, carousel, terminal, flight_number, airport_code, request_type, error}. Coverage: JNB (O.R. Tambo), CPT (Cape Town Int'l), DUR (King Shaka). Data window: flights within 48 hours. Call GET /tools/sa-airport-oracle/health (free) first — if structure_valid=false, do not proceed. error_type values: 'stale_data' (do not retry), 'not found' (retry after 10-15 min), network error (retry once). flight_number is case-insensitive and normalised to uppercase internally. Read-only — no booking/ticketing. Cost: $0.1200 USDC per call.
输入模式
{'type': 'object', 'required': ['airport_code', 'flight_number', 'request_type'], 'properties': {'airport_code': {'enum': ['JNB', 'CPT', 'DUR'], 'type': 'string', 'description': 'IATA airport code. JNB=O.R. Tambo (Johannesburg), CPT=Cape Town, DUR=King Shaka (Durban).'}, 'request_type': {'enum': ['arrival', 'departure'], 'type': 'string', 'description': 'Search the arrivals board or departures board.'}, 'flight_number': {'type': 'string', 'description': "IATA flight number, e.g. 'SA322'. Case-insensitive."}}}
tool_zar_prices
POST /tools/zar-prices/run — Returns live bid/ask/last prices for crypto/ZAR pairs. Input: {pair: 'BTC/ZAR'|'ETH/ZAR'|'SOL/ZAR'|'USDC/ZAR'|'all'}. Output: array of {exchange, pair, price, bid, ask, timestamp} objects. Sources: VALR (all 4 pairs), Luno (BTC/ZAR + ETH/ZAR only). SOL/ZAR and USDC/ZAR are VALR-only. Fetches all exchanges concurrently. Timestamps are ISO-8601 UTC. Cost: $0.0050 USDC per call.
输入模式
{'type': 'object', 'required': [], 'properties': {'pair': {'enum': ['BTC/ZAR', 'ETH/ZAR', 'SOL/ZAR', 'USDC/ZAR', 'all'], 'type': 'string', 'default': 'all', 'description': "Trading pair to fetch. Use 'all' to fetch every supported pair concurrently."}}}
已添加
tool_sa_airport_oracle
2026年9月17日 12:49
已添加
tool_compute_sandbox
2026年9月17日 12:49
已添加
tool_data_transformer
2026年9月17日 12:49
已添加
tool_zar_prices
2026年9月17日 12:49