KosmoKrator

marketing

TikTok MCP Integration for OpenAI Agents SDK

Connect TikTok to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect TikTok to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

TikTok MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-tiktok": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=tiktok",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=tiktok --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only TikTok instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

TikTok Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the TikTok integration catalog.

MCP toolSource functionTypeDescription
integration__tiktok__tiktok_list_videos tiktok.tiktok_list_videos Read List videos available for an advertiser in TikTok Business. Returns video IDs, names, and metadata.
integration__tiktok__tiktok_get_video tiktok.tiktok_get_video Read Get details for a specific TikTok video, including preview URL, duration, and status.
integration__tiktok__tiktok_upload_video tiktok.tiktok_upload_video Write Upload a video to TikTok via URL for use in advertising campaigns.
integration__tiktok__tiktok_list_campaigns tiktok.tiktok_list_campaigns Read List advertising campaigns for a TikTok advertiser. Returns campaign IDs, names, status, and budgets.
integration__tiktok__tiktok_get_campaign tiktok.tiktok_get_campaign Read Get details for a specific TikTok advertising campaign, including budget, schedule, and performance.
integration__tiktok__tiktok_list_advertisers tiktok.tiktok_list_advertisers Read List advertisers accessible to the authenticated TikTok Business user. Returns advertiser IDs, names, and company details.
integration__tiktok__tiktok_get_current_user tiktok.tiktok_get_current_user Read Get the authenticated user's TikTok Business account information, including display name, email, and status.

Related TikTok Pages