Claude Code
Anthropic’s official CLI for Claude. Uses your Popcorn API key as a Bearer header.
Add Popcorn
Section titled “Add Popcorn”First, generate a security token. Then run this in your terminal:
claude mcp add --transport http popcorn https://api.popcorn.co/mcp \ --header "Authorization: Bearer YOUR_POPCORN_API_KEY"The --transport http flag is required (Popcorn uses Streamable HTTP).
Scoping the config
Section titled “Scoping the config”By default, Claude Code writes the MCP config to ~/.claude.json (user-wide). To scope it differently:
| Scope | Flag | Where it writes |
|---|---|---|
| User | (default) | ~/.claude.json |
| Project | --scope project | .mcp.json at the repo root |
| Local user | --scope user | User-wide config |
Try it
Section titled “Try it”Start a new Claude Code session and ask:
Use Popcorn to make me a 15-second vertical product promo. When it’s done, share the link.
Claude Code will call create_movie, poll get_movie until it’s ready, and hand you the video URL.