Skip to documentation
Open dashboard
On this page

MCP setup

Connect Tong in your MCP client, authorize your account, then discover and call the permitted creative tools.

Connect with OAuth#

Connect Tong in your MCP client, authorize your account, then discover and call the permitted creative tools.

JSON
{  "mcpServers": {    "tong": {      "type": "http",      "url": "https://platform.tongai.io/mcp"    }  }}

Use the endpoint below in an MCP client that supports Streamable HTTP.

HTTP
transport: Streamable HTTPprotocol: 2025-11-25SDK: @modelcontextprotocol/sdk 1.32.1endpoint: https://platform.tongai.io/mcp

Discover and call tools#

JSON
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/list",  "params": {}}

REST requests wrap the tool arguments in input. MCP calls send the same arguments directly.

JSON
{  "jsonrpc": "2.0",  "id": 2,  "method": "tools/call",  "params": {    "name": "tong_generation_quote",    "arguments": {      "body": {        "operation": "TEXT_TO_IMAGE",        "model": "tong_ea55aff4f3b5c8aba3a35569",        "routingParameters": {          "ratio": "16:9"        }      }    },    "_meta": {      "io.tongai/idempotency-key": "45be69f1-c266-4a09-a82c-bf3c6303eb03"    }  }}

Compatibility#

Only the pinned official SDK and local bridge have local compatibility evidence. Other MCP applications need verification before being listed as supported.