Skip to content

API and example scripts

The primary integration for agents is MCP over POST /mcp (JSON-RPC). A separate REST surface may be added later; for now, use JSON-RPC for everything in this documentation.

Direct curl patterns — use the endpoint doc and tools catalog for one-off tools/call tests.

Node (fetch)

js
// tools/list
const r = await fetch('https://fifa.qtech.hr/mcp', {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    authorization: 'Bearer fam_live_YOUR_KEY', // optional
  },
  body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list' }),
})
console.log(await r.json())

Python (urllib)

python
import json
import urllib.request

req = urllib.request.Request(
  "https://fifa.qtech.hr/mcp",
  data=json.dumps({
    "jsonrpc": "2.0", "id": 1, "method": "tools/call",
    "params": {"name": "site_info", "arguments": {}}
  }).encode(),
  headers={"content-type": "application/json", "Authorization": "Bearer fam_live_YOUR_KEY"},
  method="POST",
)
print(urllib.request.urlopen(req).read().decode())

Rate limit expectations

  • Unmetered read tools: still subject to normal Cloudflare and origin protections; do not open unbounded parallel loops in production.
  • Quota tools: the Worker counts per identity/IP/month — see auth and quotas. There is no custom X-RateLimit-* contract documented here yet; if you add one server-side, update this page.

NextErrors → · Operations →

Last updated: