Developer Reference

API v1 and MCP Protocol Reference.

OpenAI-compatible REST routes and Model Context Protocol transport for programmatic access to your infrastructure.

01

Base URL

Route every request to the production backend host below. Both the panel domain and this host resolve to the same origin.

https://cexi.my.id
02

Authentication

Include credentials in the Authorization header using the Bearer scheme. The panel accepts both API keys issued from the dashboard and active session JWTs.

Terminal
Authorization: Bearer mf_live_xxx   # API Key (PRO or STUDIO plan)
Authorization: Bearer <jwt-token>    # Session Token
03

REST API v1

OpenAI-compatible routes for chat completions and model discovery. The completions endpoint accepts the standard request shape used by official SDKs.

GET /api/v1/modelshttps://cexi.my.id/api/v1/models

Returns the catalog of available models, their identifiers, and ownership metadata.

Terminal
curl -X GET https://cexi.my.id/api/v1/models \
  -H "Authorization: Bearer mf_live_xxx"
POST /api/v1/chat/completionshttps://cexi.my.id/api/v1/chat/completions

Generates a chat completion. Alias available at /api/v1/chat. Pass an optional effort field to control reasoning depth.

Terminal
curl -X POST https://cexi.my.id/api/v1/chat/completions \
  -H "Authorization: Bearer mf_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy3-free",
    "messages": [
      { "role": "system", "content": "You are an automated server management agent." },
      { "role": "user", "content": "Check server health and resource usage." }
    ],
    "effort": "high"
  }'
04

Model Context Protocol

Connect Claude Desktop, Cursor, or any MCP-compatible client to drive nodes and servers programmatically. The tool list is scoped to your account.

GET /mcp/infohttps://cexi.my.id/mcp/info

Server metadata: name, version, protocol version, and declared capabilities.

Terminal
GET /mcp/toolshttps://cexi.my.id/mcp/tools

Enumerates every tool the MCP server exposes, including input schemas for each.

Terminal
curl -X GET https://cexi.my.id/mcp/tools \
  -H "Authorization: Bearer your_jwt_token"
POST /mcp/tools/callhttps://cexi.my.id/mcp/tools/call

Invokes a named tool with arguments. Tools include list_nodes, control_server, rcon_command, deploy_from_git, and more.

Terminal
curl -X POST https://cexi.my.id/mcp/tools/call \
  -H "Authorization: Bearer your_jwt_token" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "rcon_command",
    "arguments": {
      "serverId": "server_id_here",
      "command": "op PlayerName"
    }
  }'
05

Interactive Console

Fire live requests against the running backend from this page. Results render inline below the form.

Request Builder
Live