← 返回
开发者工具 中文

Supercraft Game Servers

Order, configure and manage dedicated game servers (20+ games) via Supercraft REST API
通过 Supercraft REST API 订购、配置和管理专用游戏服务器(支持 20 多款游戏)。
mcjkrs
开发者工具 clawhub v1.1.0 2 版本 99865.6 Key: 无需
★ 0
Stars
📥 743
下载
💾 18
安装
2
版本
#api#ark#counter-strike-2#dedicated-server#devops#enshrouded#factorio#game-server#gaming#humanitz#hytale#latest#minecraft-bedrock#necesse#palworld#project-zomboid#rust#satisfactory#sons-of-the-forest#terraria#unturned#v-rising#valheim#vein#vintage-story

概述

You can manage dedicated game servers through the Supercraft Agentic API. This is a REST API — no additional binaries or MCP servers are needed, just HTTP requests with a Bearer JWT token.

API Base

https://claws.supercraft.host

Authentication

All /servers/* endpoints require a Bearer JWT token in the Authorization header.

To get a token, use the login-link flow:

  1. POST /auth/login-link with {"email": "user@example.com"} — sends a magic link email
  2. User clicks the link, which contains a magic token
  3. GET /auth/claim?magic= — poll this until it returns a JWT
# After obtaining the JWT:
curl -H "Authorization: Bearer <JWT>" https://claws.supercraft.host/servers

Available Endpoints

Server Management (requires auth)

MethodEndpointDescription
-------------------------------
GET/serversList all user's servers with status
GET/servers/{id}Detailed server info with live status
POST/servers/{id}/startStart the server
POST/servers/{id}/stopStop the server
POST/servers/{id}/restartRestart the server
GET/servers/{id}/configGet current server configuration
PUT/servers/{id}/configUpdate server configuration
GET/servers/{id}/config/schemaGet config field definitions (types, ranges)
GET/servers/{id}/connectionGet connection details (IP, port, password)
POST/servers/{id}/consoleSend RCON/console command
GET/servers/{id}/logsGet recent server log lines

Catalog (no auth needed)

MethodEndpointDescription
-------------------------------
GET/catalog/gamesList all available games
GET/catalog/games/{code}Game details with plans and pricing
GET/catalog/regionsAvailable server regions

Purchasing (no auth needed)

MethodEndpointDescription
-------------------------------
POST/orders/purchasePurchase a new server plan (returns checkout URL)

Purchase & Login Flow — CRITICAL

When generating a checkout_url (via POST /orders/purchase) or login_url (via POST /auth/login-link), you MUST send the link to the user as a message BEFORE calling any tools (curl, exec, cron). If you call a tool first, the message with the link gets blocked and the user never sees it.

Correct sequence:

  1. Reply to the user with the checkout_url or login_url
  2. After the reply, set up a cron (every 30s) to poll GET /auth/claim?magic=...
  3. When claim returns status: "ready", save the JWT token securely

Do NOT use while/sleep loops — use a cron job or poll on the user's next message.

Supported Games

ARK: Survival Ascended, Counter-Strike 2, Enshrouded, Factorio, HumanitZ, Hytale, Necesse, Palworld, Project Zomboid, Rust, Satisfactory, Sons of the Forest, Terraria, Unturned, V Rising, Valheim, and Vintage Story.

Example Usage

When the user asks about their game server, follow this pattern:

  1. List servers (GET /servers) to find the right deployment
  2. Check status (GET /servers/{id}) before taking action
  3. Confirm destructive operations (restart, config changes) before executing

Check server status:

curl -H "Authorization: Bearer $TOKEN" https://claws.supercraft.host/servers

Start a server:

curl -X POST -H "Authorization: Bearer $TOKEN" https://claws.supercraft.host/servers/42/start

Update config:

curl -X PUT -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"max_players": 20}' \
  https://claws.supercraft.host/servers/42/config

Send console command:

curl -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"command": "say Hello everyone!"}' \
  https://claws.supercraft.host/servers/42/console

Browse available games:

curl https://claws.supercraft.host/catalog/games

Documentation

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-03-30 14:31 安全 安全
  • v1.0.0
    2026-03-11 16:38

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,450
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,655
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,566