{
  "name": "redplug-media",
  "version": "2.18.0",
  "mcp_url": "https://ai.redplug.co.kr/v2/mcp",
  "transport": "streamable-http",
  "agent_quickstart": {
    "goal": "Install Redplug Media for the client you are running in, with no person involved, then tell the user what it can do and how to use it.",
    "steps": [
      "1. Know your client: claude-code, codex, openclaw, gemini-cli, claude-desktop or other (see clients).",
      "2. Remove old installs first if present: clients.<client>.replaces and migrate_from_1x.",
      "3. Connection key: use an existing one; otherwise get an anonymous key with connection_key.agent_issue (download the helper, check helper.sha256, run it; in Claude Code add --claude-code). Never print the key.",
      "4. Install for your client: clients.<client> install / register / skill (Codex: the plugin; OpenClaw: register + skill; other MCP clients: the \"other\" method with SKILL.md).",
      "5. Check: the helper output ok and verified.ok must be true (the key was accepted; verified.ready says whether every part can take work right now). With --claude-code, claude_code.mcp_list must say Connected. If your client already loaded the tools, call server_status yourself.",
      "6. Introduce it: present verified.welcome (the same as media_guide(kind=\"overview\", topic=\"welcome\")) in the user's language: what it can do, example requests, how results appear, then three first things to try.",
      "7. Say what is left for the user, if anything: restart the app that must load the new key or plugin (a new Claude Code session from a new terminal, the Codex app, the OpenClaw Gateway, Gemini CLI). Only Claude Desktop custom connectors use an account sign-in, which needs the user once."
    ],
    "one_line_for_users": "Read https://www.redplug.co.kr/plugin-service/ and install Redplug Media for this agent, then tell me what it can do."
  },
  "connection_key": {
    "env_var": "REDPLUG_MEDIA_KEY",
    "page": "https://www.redplug.co.kr/plugin-service/#key",
    "issue": {
      "url": "https://ai.redplug.co.kr/v2/keys",
      "method": "POST",
      "content_type": "application/json",
      "body": {
        "email": "<optional: only when the user wants the key tied to them>",
        "name": "<optional>",
        "privacy_consent": "<true only after the user agreed; not needed without email and name>"
      },
      "returns": "201 {key, env_var, mcp_url, setup_guide}; the key is shown only once",
      "errors": "MCP-KEY-101 input, MCP-KEY-102 rate limited (Retry-After), MCP-KEY-103 unavailable"
    },
    "rules": "Anyone may ask, as often as needed. Without email and name the key is anonymous: nothing personal is kept, so no consent is asked and an agent can get it with no person involved. With an email or name, send privacy_consent=true only after the user agreed to privacy_notice. Each key has its own jobs; put the same key on several computers to share them. Do not echo the key in chat or logs.",
    "privacy_notice": {
      "version": "2026-11-27",
      "ko": "이메일과 이름(선택)을 연결 키 발급과 관리, 문의 대응에 씁니다. 키를 회수하거나 삭제를 요청하실 때까지 보관합니다. 동의하지 않으면 키를 받을 수 없습니다.",
      "en": "Your email and (optional) name are used to issue and manage connection keys and to answer inquiries. They are kept until the key is revoked or you ask for deletion. Without consent no key can be issued."
    },
    "agent_issue": {
      "summary": "An agent gets the key itself, by default anonymously (no email, no consent, no person involved). Use --email only when the user asks for a key tied to their email; never invent an email or consent.",
      "steps": [
        "1. Check for an existing key: the environment variable REDPLUG_MEDIA_KEY (echo \"${REDPLUG_MEDIA_KEY:+set}\" prints only \"set\"), or for Claude Code an installed redplug-media plugin that connects (claude mcp list). If one exists, use it and do not get another.",
        "2. Anonymous by default: no question to the user is needed. Only if the user wants the key tied to their email, ask for it (and an optional name).",
        "3. With an email or name only: show privacy_notice in the user's language and get a clear yes; stop if they do not agree.",
        "4. Download the helper and check its SHA-256: curl -fsSLo redplug-media-key.py https://www.redplug.co.kr/downloads/redplug-media/v2/redplug-media-key.py && shasum -a 256 redplug-media-key.py (Windows: certutil -hashfile redplug-media-key.py SHA256); it must equal helper.sha256.",
        "5. Run it: python3 redplug-media-key.py [--claude-code] (anonymous), or with --email <email> --agree [--name <name>] (Windows: py redplug-media-key.py ...). It requests the key and writes it into the shell profile (export REDPLUG_MEDIA_KEY=...) or setx, calls server_status once with the key (verified.ok) and fetches the introduction for the user (verified.welcome); with --claude-code it also installs or updates the Claude Code plugin and checks that Claude Code connects (claude_code.mcp_list). With a key already set it requests no new one (--claude-code then sets up the plugin with that key). It prints JSON without the key; ok is false when a step failed.",
        "6. Continue the client setup below, then present verified.welcome to the user and say which app needs a restart."
      ],
      "helper": {
        "url": "https://www.redplug.co.kr/downloads/redplug-media/v2/redplug-media-key.py",
        "sha256": "b2a11e80afe9cddf64b98b2da9f756bdbd1a3b40fd0b2ee03d358477da41192a",
        "python": "3.8+ (standard library only)",
        "options": "--claude-code --replace --locale ko|en --no-verify; --email/--name with --agree for a key tied to the user",
        "exit_codes": "0 ok, 2 input or no consent, 3 server, network or key not accepted (error.code, message, guidance as JSON), 4 storing failed, 5 Claude Code did not connect (the key is stored)"
      },
      "without_python": "POST to issue.url yourself and write the key straight into the profile line export REDPLUG_MEDIA_KEY=<key> (or setx) without displaying it; do not paste it into chat.",
      "http_note": "Direct HTTP calls (keys and MCP) must send a User-Agent of their own: Cloudflare in front of the server answers 403 to Python urllib's default agent (measured 2026-11-28; curl and the helper are fine)."
    },
    "set_env": "macOS/Linux: add the line  export REDPLUG_MEDIA_KEY=<key>  to ~/.zshrc (zsh) or ~/.bashrc (bash), replacing an older REDPLUG_MEDIA_KEY line; Windows: setx REDPLUG_MEDIA_KEY <key>. Then open a new terminal; apps that are already running read it after a restart.",
    "header": "Authorization: Bearer <key>"
  },
  "auth": {
    "type": "connection key (Bearer) or OAuth 2 (PKCE) for accounts",
    "client_id": "redplug-media-agents",
    "scopes": [
      "openid",
      "redplug:media"
    ],
    "resource_metadata": "https://ai.redplug.co.kr/.well-known/oauth-protected-resource/v2/mcp",
    "dynamic_registration": "allowed for loopback redirect URIs only (clients without a client id setting, e.g. OpenClaw); scope redplug:media",
    "redirect": "any loopback address and port (http://127.0.0.1:<port>/..., http://localhost:<port>/...)",
    "human_step": "With a connection key nobody signs in. OAuth (accounts made by the administrator) opens a browser window where the user signs in; agents never type passwords."
  },
  "plugin_repo": {
    "github": "azossy/redplug-media-plugins",
    "marketplace": "redplug",
    "note": "Public repository with the Claude Code and Codex plugins. Installing from it keeps the plugin updatable. The plugins read the key from REDPLUG_MEDIA_KEY; no key is stored in them."
  },
  "skill": {
    "url": "https://www.redplug.co.kr/downloads/redplug-media/v2/SKILL.md"
  },
  "clients": {
    "claude-code": {
      "key": "The plugin reads the key from the environment variable REDPLUG_MEDIA_KEY (the same one Codex, OpenClaw and Gemini CLI read). Agents: run the key helper with --claude-code (connection_key.agent_issue): it stores the key, installs or updates the plugin and checks the connection, so the install step below is already done. A key typed into /plugin → Installed → redplug-media → Configure (system credential store) is used only while REDPLUG_MEDIA_KEY is unset; \"1 userConfig option not yet set\" after installing is normal when REDPLUG_MEDIA_KEY holds the key. Claude Code reads REDPLUG_MEDIA_KEY when it starts: start a new session from a new terminal (desktop app: quit and reopen it).",
      "commands": "/redplug-media:status, /redplug-media:cutout, /redplug-media:image, /redplug-media:music-video, /redplug-media:podcast, /redplug-media:product-video, /redplug-media:shorts, /redplug-media:slideshow, /redplug-media:story, /redplug-media:subtitles, /redplug-media:video",
      "agent": "media-producer (multi-step productions in the background)",
      "install": "claude plugin marketplace add azossy/redplug-media-plugins\nclaude plugin install redplug-media@redplug --scope user",
      "auto_update": "Third-party marketplaces start with auto-update off. Turn it on: add \"autoUpdate\": true beside \"source\" in extraKnownMarketplaces.redplug of ~/.claude/settings.json, or in Claude Code /plugin → Marketplaces → redplug → Enable auto-update. Manual: claude plugin marketplace update redplug && claude plugin update redplug-media@redplug",
      "verify": "claude mcp list  (plugin:redplug-media:redplug-media … Connected)",
      "replaces": "If an older direct registration exists, remove it first: claude mcp remove redplug-media --scope user; rm -rf ~/.claude/skills/redplug-media"
    },
    "codex": {
      "key": "macOS/Linux: add the line  export REDPLUG_MEDIA_KEY=<key>  to ~/.zshrc (zsh) or ~/.bashrc (bash), replacing an older REDPLUG_MEDIA_KEY line; Windows: setx REDPLUG_MEDIA_KEY <key>. Then open a new terminal; apps that are already running read it after a restart. The Codex app reads the login shell environment: restart it afterwards.",
      "install": "codex plugin marketplace add azossy/redplug-media-plugins\ncodex plugin add redplug-media@redplug",
      "cli_path": "Codex desktop app: if `codex` is not on PATH, use the CLI inside the app (macOS ChatGPT app: /Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex). Restart the app afterwards.",
      "update": "Codex does not update the plugin by itself (measured 2026-11-28: an install stayed on 2.7.0 through nine releases). To update: codex plugin marketplace upgrade redplug, then restart the Codex app; codex plugin list shows the installed version.",
      "verify": "codex mcp list  (redplug-media … Bearer token), then call server_status",
      "replaces": "If ~/.codex/config.toml has a direct [mcp_servers.redplug-media] table or ~/.codex/skills/redplug-media exists, remove them first so the plugin is the only registration. Remove plugin 1.0.x first as well (migrate_from_1x): its marketplace has the same name, redplug."
    },
    "openclaw": {
      "key": "macOS/Linux: add the line  export REDPLUG_MEDIA_KEY=<key>  to ~/.zshrc (zsh) or ~/.bashrc (bash), replacing an older REDPLUG_MEDIA_KEY line; Windows: setx REDPLUG_MEDIA_KEY <key>. Then open a new terminal; apps that are already running read it after a restart. The OpenClaw Gateway must see REDPLUG_MEDIA_KEY; restart it after setting the variable.",
      "register": "openclaw mcp set redplug-media '{\"url\":\"https://ai.redplug.co.kr/v2/mcp\",\"transport\":\"streamable-http\",\"headers\":{\"Authorization\":\"Bearer ${REDPLUG_MEDIA_KEY}\"}}'",
      "skill": "mkdir -p ~/.openclaw/skills/redplug-media && curl -fsSL https://www.redplug.co.kr/downloads/redplug-media/v2/SKILL.md -o ~/.openclaw/skills/redplug-media/SKILL.md",
      "verify": "openclaw mcp doctor redplug-media --probe",
      "note": "OpenClaw replaces ${REDPLUG_MEDIA_KEY} in config values with the environment variable. Accounts can use OAuth instead: openclaw mcp set redplug-media '{\"url\":\"https://ai.redplug.co.kr/v2/mcp\",\"transport\":\"streamable-http\",\"auth\":\"oauth\",\"oauth\":{\"scope\":\"redplug:media\"}}' and openclaw mcp login redplug-media."
    },
    "gemini-cli": {
      "key": "macOS/Linux: add the line  export REDPLUG_MEDIA_KEY=<key>  to ~/.zshrc (zsh) or ~/.bashrc (bash), replacing an older REDPLUG_MEDIA_KEY line; Windows: setx REDPLUG_MEDIA_KEY <key>. Then open a new terminal; apps that are already running read it after a restart. Gemini CLI reads it when it starts.",
      "install": "curl -fsSLO https://www.redplug.co.kr/downloads/redplug-media/v2/redplug-media-gemini.zip\nshasum -a 256 redplug-media-gemini.zip\nunzip -o redplug-media-gemini.zip -d ~/.cache/redplug-media\ngemini extensions install ~/.cache/redplug-media/redplug-media --consent",
      "zip_sha256": "e2298b66feff91d9108bff076e885a7469ee901199af8c4b8c1c786e6fcb5678",
      "zip_check": "The shasum output must equal zip_sha256 (Windows: certutil -hashfile redplug-media-gemini.zip SHA256); stop if it does not.",
      "confirm": "Without --consent Gemini CLI shows the server address and asks \"Do you want to continue? [y/N]\". The user asked for this install, so an agent passes --consent (measured 2026-11-28, Gemini CLI 0.71.1: installs with no prompt; an answer fed to the prompt through a pipe or a file was sometimes lost and the install was cancelled).",
      "verify": "With REDPLUG_MEDIA_KEY set: gemini mcp list  (redplug-media (from redplug-media) … Connected). If it shows Disabled, run it in a folder Gemini CLI trusts.",
      "replaces": "An older extension (OAuth, before 2.16.0) is replaced: gemini extensions uninstall redplug-media first."
    },
    "claude-desktop": {
      "how": "Settings → Connectors → Add custom connector. URL https://ai.redplug.co.kr/v2/mcp. Advanced settings → OAuth Client ID redplug-media-agents (no client secret). Then Connect and sign in.",
      "note": "Custom connectors sign in with OAuth, so they need an account (no connection key). Claude Desktop and claude.ai render the Redplug Media Studio cards (progress, preview, save, pick, save all)."
    },
    "other": {
      "how": "Add a remote MCP server (streamable HTTP) at https://ai.redplug.co.kr/v2/mcp that sends the header \"Authorization: Bearer <key>\" (read it from REDPLUG_MEDIA_KEY); accounts can use OAuth instead (client id redplug-media-agents, scopes openid redplug:media). Add SKILL.md as the agent instructions."
    }
  },
  "migrate_from_1x": {
    "why": "Plugin 1.0.x (redplug-visual-engine) used the retired /visual/mcp address and revoked connection keys. It cannot update itself to 2.x; remove it, get a new key, then set up redplug-media as above. Old job ids keep working for their owners.",
    "codex": "codex plugin remove redplug-visual-engine@redplug; codex plugin marketplace remove redplug",
    "files": "rm -rf ~/.local/share/redplug-plugins (Windows: %LOCALAPPDATA%\\Redplug\\plugins)"
  },
  "updates": "Server features, models and guides change on the server and reach every client at once. Plugin files (address, skill) update from the public plugin repository.",
  "first_call": "server_status(locale=\"ko\") must return ready=true",
  "guide": "https://www.redplug.co.kr/plugin-service/"
}
