KosmoKrator

media

Mux MCP Integration for OpenAI Agents SDK

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

7 functions 5 read 2 write Bearer token auth

Connect Mux 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.

Mux MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Mux 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.

Mux Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__mux__mux_list_assets mux.mux_list_assets Read List video assets stored in Mux. Returns a paginated list of assets with their IDs, status, duration, and playback information.
integration__mux__mux_get_asset mux.mux_get_asset Read Retrieve details of a specific video asset by its ID, including status, playback IDs, duration, and tracks.
integration__mux__mux_create_asset mux.mux_create_asset Write Create a new video asset in Mux from an input URL. The asset is ingested and encoded asynchronously. Optionally set a playback policy (public or signed).
integration__mux__mux_list_live_streams mux.mux_list_live_streams Read List live streams in Mux. Returns a paginated list of live streams with their IDs, status, stream key, and playback information.
integration__mux__mux_get_live_stream mux.mux_get_live_stream Read Retrieve details of a specific live stream by its ID, including status, stream key, playback IDs, and reconnect window.
integration__mux__mux_create_live_stream mux.mux_create_live_stream Write Create a new live stream in Mux. Returns the stream key and playback information. Optionally set playback policy and asset creation settings.
integration__mux__mux_get_current_user mux.mux_get_current_user Read Get realtime viewer data from Mux Data, including current viewer counts across all properties and views.

Related Mux Pages