Mux MCP connector
OAuth2.1/DCRMediaDeveloper ToolsMux is a video infrastructure platform for developers, providing APIs for video hosting, on-demand streaming, live streaming, and playback with analytics...
Mux MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'muxmcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Mux MCP:', link)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'muxmcp_search_docs',toolInput: { query: 'YOUR_QUERY', language: 'YOUR_LANGUAGE' },})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "muxmcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Mux MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={"query":"YOUR_QUERY","language":"YOUR_LANGUAGE"},tool_name="muxmcp_search_docs",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- Search docs — Search SDK documentation to find methods, parameters, and usage examples for interacting with the API
- Execute records — Runs JavaScript code to interact with the Mux API
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
muxmcp_execute#Runs JavaScript code to interact with the Mux API. Define an async function named "run" that takes a single parameter of an initialized SDK client. Returns anything the function returns plus console.log output. Code runs in a sandboxed container with no external network access beyond the Mux SDK client.2 params
Runs JavaScript code to interact with the Mux API. Define an async function named "run" that takes a single parameter of an initialized SDK client. Returns anything the function returns plus console.log output. Code runs in a sandboxed container with no external network access beyond the Mux SDK client.
codestringrequiredCode to execute.intentstringoptionalTask you are trying to perform. Used for improving the service.muxmcp_search_docs#Search SDK documentation to find methods, parameters, and usage examples for interacting with the API. Use this before writing code when you need to discover the right approach.3 params
Search SDK documentation to find methods, parameters, and usage examples for interacting with the API. Use this before writing code when you need to discover the right approach.
languagestringrequiredThe language for the SDK to search for.querystringrequiredThe query to search for.detailstringoptionalThe amount of detail to return.