KosmoKrator

media

Mux MCP, CLI, and Lua Integration for AI Agents

Mux integration docs for AI agents: MCP gateway setup, Mux CLI commands, Lua API reference, credentials, and function schemas.

7 functions 5 read 2 write Bearer token auth

Mux for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
mux
route_slug
mux
package
mux
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Mux MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mux.

Mux CLI Matrix

Use these pages for direct Mux CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
mux.mux_list_assets Read read 2 List video assets stored in Mux. Returns a paginated list of assets with their IDs, status, duration, and playback information.
mux.mux_get_asset Read read 1 Retrieve details of a specific video asset by its ID, including status, playback IDs, duration, and tracks.
mux.mux_create_asset Write write 2 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).
mux.mux_list_live_streams Read read 2 List live streams in Mux. Returns a paginated list of live streams with their IDs, status, stream key, and playback information.
mux.mux_get_live_stream Read read 1 Retrieve details of a specific live stream by its ID, including status, stream key, playback IDs, and reconnect window.
mux.mux_create_live_stream Write write 2 Create a new live stream in Mux. Returns the stream key and playback information. Optionally set playback policy and asset creation settings.
mux.mux_get_current_user Read read 0 Get realtime viewer data from Mux Data, including current viewer counts across all properties and views.