WEBVTT

00:00:00.600 --> 00:00:01.188
Hello everyone.

00:00:01.188 --> 00:00:10.300
This tutorial shows how to connect the Codex desktop app to StarReel's MCP server, so Codex can drive the AI short-drama pipeline directly.

00:00:10.300 --> 00:00:14.709
Prerequisite: Node.js 18 or newer on your computer, so npx works.

00:00:14.709 --> 00:00:20.000
It only takes three steps: add the MCP server in Settings, fill in your key, then just chat.

00:00:21.600 --> 00:00:23.860
Step 1: open the MCP settings.

00:00:23.860 --> 00:00:30.638
Click your avatar at the bottom left of Codex, choose "Settings", find "Plugins" in the left column, then switch to the "MCP" tab.

00:00:30.638 --> 00:00:35.480
It lists every MCP server you have connected, each with its own toggle.

00:00:37.080 --> 00:00:40.904
Click "Add" at the top right and choose "Add MCP server".

00:00:40.904 --> 00:00:46.162
Name it starreel, pick STDIO as the type, and set the launch command to npx.

00:00:46.162 --> 00:00:50.146
Add two arguments: -y and @starreel/mcp.

00:00:50.146 --> 00:00:56.360
Add one environment variable: the key is STARREEL_API_KEY; its value is the API key from the next step.

00:00:57.960 --> 00:00:59.324
Step 2: get your API key.

00:00:59.324 --> 00:01:05.234
Log in to the StarReel console, open the "API Key" page, create a new key and copy it.

00:01:05.234 --> 00:01:12.508
Back in the Codex form, paste it as the value of STARREEL_API_KEY and click "Save" at the bottom right.

00:01:12.508 --> 00:01:16.600
The key is as good as your account balance: never share it or show it in screenshots.

00:01:18.200 --> 00:01:21.922
After saving, starreel appears in the list with its toggle on.

00:01:21.922 --> 00:01:25.246
Click the gear next to it to see the command, arguments and environment variable you entered.

00:01:25.246 --> 00:01:31.760
This config is shared with the Codex CLI through ~/.codex/config.toml, so one setup works for both.

00:01:33.360 --> 00:01:34.835
Step 3: just chat.

00:01:34.835 --> 00:01:45.000
Go back to the main screen, click "New chat" and type: use the starreel tools to list the drama projects under my account, names and episode counts only, no generation.

00:01:46.600 --> 00:01:54.336
Codex calls the list_dramas tool from the Starreel integration on its own; a few seconds later the project list appears.

00:01:54.336 --> 00:02:00.640
Query tools are free; big-ticket generation such as frames, video and scene images is quoted first, other AI steps bill by usage.

00:02:02.240 --> 00:02:05.466
That's it, Codex and StarReel are now connected.

00:02:05.466 --> 00:02:11.793
Have it call get_capabilities_guide first to read the capability guide, then run the full pipeline starting from a script.

00:02:11.793 --> 00:02:16.260
Full documentation is at api.shortreelai.com/docs/mcp.

00:02:16.260 --> 00:02:16.880
Thanks for watching.
