How to Use the Cloudflare Stream MCP in OpenAI Agents SDK
Manage your video library and live streams directly inside your OpenAI Agents SDK production environment.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cloudflare Stream MCP to OpenAI Agents SDK
Create your Vinkius account to connect Cloudflare Stream to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate video uploads in OpenAI Agents SDK
Stop manual handling of video files. Your agent uses `initiate_upload` to start the TUS protocol process for incoming assets without leaving the Python environment. Once the upload starts, the agent tracks the file status using `get_video`. This keeps your production pipeline moving without context switching.
Configure live inputs for OpenAI Agents SDK
Set up your broadcast infrastructure by calling `create_live_input` through your agent. You can define metadata and recording settings immediately upon creation. When the broadcast ends, the agent cleans up via `delete_live_input`. This keeps your Cloudflare Stream account tidy and prevents orphaned live configurations.
Manage assets through OpenAI Agents SDK
Your agent handles video lifecycle events by calling `delete_video` or `edit_video`. It ensures your library metadata stays current based on your internal logic. It also uses `list_videos` to query your library status. This gives your agent full visibility into your video catalog for automated reporting.
Set up Cloudflare Stream MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all Cloudflare Stream tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Cloudflare Stream tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Cloudflare Stream tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="Cloudflare Stream Agent",
instructions="You have access to Cloudflare Stream tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Cloudflare Stream. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Cloudflare Stream MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Cloudflare Stream MCP today
We host it, we monitor it, we maintain it. You just paste one token.