Skip to content

feat(aifroi-video): add Aifroi Video Director remote MCP plugin - #379

Draft
CoderLin99 wants to merge 1 commit into
zai-org:mainfrom
CoderLin99:feat/aifroi-video
Draft

CoderLin99 wants to merge 1 commit into
zai-org:mainfrom
CoderLin99:feat/aifroi-video

Conversation

@CoderLin99

Copy link
Copy Markdown

Plugin type (required) / 插件类型(必填)

  • UI Plugin / 是 UI 插件 — provides MCP Apps interactive pages / 提供 MCP Apps 交互页面
  • Standard plugin / 普通插件(非 UI) — remote MCP server and skills only; no MCP Apps pages / 仅远程 MCP 与技能,不提供 MCP Apps 交互页面
  • Not applicable / 不适用

Affected plugin name(s) / 涉及的插件名称:aifroi-video

What / 改动内容

Adds aifroi-video (Aifroi Video Director / AI 爆款编导), a community plugin from Aifroi for Douyin e-commerce sellers and Qianchuan ad teams.

新增社区插件 aifroi-video(AI 爆款编导),由 Aifroi 提供,面向抖音电商和巨量千川素材团队。

User problem / 解决的问题: turning a product image and a selling point into a usable 9:16 product video takes planning (angles, shot lists, voice-over, ad-compliance wording) and then production. The six skills deliver the planning work on their own; with the Aifroi account authorized they also generate the video and report the exact points used. / 把一张商品图和一句卖点变成可投放的 9:16 带货视频,需要先策划(测款方向、分镜、口播、广告法用语)再制作。6 个技能不授权也能交付策划;授权 Aifroi 账号后可直接出片并核对每条的实际扣点。

Components / 组件

Component Notes
.mcp.json server aifroi Remote Streamable HTTP https://aifroi.com/mcp, type: http, no Authorization header, so ZCode runs its own OAuth flow (DCR + PKCE). timeoutMs: 120000. Same pattern as tripo-3d.
6 skills aifroi-video-plan, aifroi-product-video, aifroi-element-swap, aifroi-script-video, aifroi-reference-video, aifroi-video-delivery. Each skill folder carries only the reference files it links to.
No Hooks, commands, agents, local MCP processes, scripts or binaries.

Marketplace entry / 市场登记: new entry in marketplace.json, version 1.0.0 (same as .zcode-plugin/plugin.json), category productivity, description_i18n / displayName_i18n with en and zh-CN, examplePrompts + examplePrompts_i18n.zh-CN. Icon at assets/aifroi-video/icon.png (512×512 PNG, Aifroi brand artwork) with a provenance record in assets/icon-sources.json; the entry references the CDN URL per assets/README.md.

Dependencies, network, permissions and side effects / 依赖、网络、权限与副作用 (also in both READMEs):

  • Network: MCP calls to https://aifroi.com/mcp; OAuth page on aifroi.com; local media goes to a one-time upload URL issued by Aifroi (https://aifroi.com/api/mcp/upload/..., 10 minutes); finished videos are signed object-storage links returned by Aifroi.
  • Billing: generating a video consumes points from the user's own Aifroi account. Every generation shows a live quote and the current balance first and is submitted only after the user confirms; repeated confirmation does not create a second order. New Aifroi accounts registered through this OAuth flow get 10,000 points.
  • Write operations (media upload, video creation) run only on explicit user request; no bulk generation, refunds or publishing.
  • Command execution: only curl to the one-time upload URL, and only when the user asks to use a local workspace file or attachment (subject to the user's ZCode permission settings).
  • No telemetry; credentials stay in ZCode's credential store; skills never ask for tokens, cookies, codes or passwords.

Source and license / 来源与许可: skills, references, READMEs and icon are written by Aifroi; no third-party code or material. The MCP server is Aifroi's own hosted service, governed by Aifroi's terms and privacy policy. The plugin manifest sets no separate license; please tell us if you want one declared.

Testing / 测试

Ran locally on Windows 11 (Python 3.12.10, Node 24.22.0, pnpm 10.6.5):

  • pnpm install --frozen-lockfile — passed
  • pnpm build — failed on Windows, unrelated to this plugin: ui-plugins/excalidraw/scripts/build.mjs:90 takes the LEGAL file name with f.path.split("/").pop(), which keeps the whole backslash path on Windows (ENOENT ... dist\ui\D:\...\main.js.LEGAL.txt). This plugin has nothing to compile.
  • python3 scripts/validate.py — OK: 59 plugin(s) validated
  • python3 scripts/build_dist.py on the full repo — blocked by the pnpm build failure above (UnsafeTree: excalidraw: incomplete build; run pnpm build first).
  • Unmodified scripts/validate.py and scripts/build_dist.py on a copy containing only this plugin's directory, its icon and its marketplace.json entry — OK: 1 plugin(s) validated; built plugins/aifroi-video/1.0.0/plugin.zip (111 files, 293,096 bytes, sha256 a07071edbc0626eb8db7908042528d013653128b99065cdc078f99ecaade4465), published entry publisherType: community, componentTypes: [skill, mcp]. CI on Linux should run the full build.
  • git diff --check — passed
  • python -m unittest tests.test_icon_assets tests.test_catalog_classification tests.test_tree_safety — 27 tests OK

Runtime verification in ZCode: not done yet. / ZCode 客户端实测:待补。 The ZCode client has not been installed in this environment, so installing from dist/local-marketplace, clicking Open authorization, completing the Aifroi OAuth sign-in and running the example prompts have not been exercised. The OAuth part needs the account owner to sign in personally. This PR stays a Draft until that run is recorded here (steps, screenshots or a short recording). Nothing in this PR claims a successful client run.

Planned reproduction steps / 计划的复现步骤:

  1. pnpm install --frozen-lockfile && pnpm build, then add dist/local-marketplace under Plugin Marketplace → Add, install and enable aifroi-video.
  2. Settings → MCP Servers → Plugin-provided servers: the aifroi row shows Open authorization; sign in on aifroi.com and grant query / upload / create.
  3. New task: "帮我给这款零食想 3 个千川测款方向,每个方向配分镜脚本" (planning plus live quote, no generation); then "我的视频做好了吗?这条扣了多少算力" (read-only lookup). A real generation is run only with the account owner's consent because it consumes points.

Questions for maintainers / 想请教维护者

  1. Our service is for mainland China users. Since ZCode 4.0.0 shows plugins by login region, can this community plugin be shown only in the China region? / 我们只服务国内用户,社区插件能否只在国内地区展示?
  2. With the plugin namespace, the OAuth client_name and callback path become plugin:aifroi-video:aifroi-based; is that stable enough to rely on? / 插件命名空间下 OAuth 的 client_name 和回调路径是否稳定?

Self-check / 自查清单

  • Plugin name is unique kebab-case; new external plugin directory is external_plugins/aifroi-video/ / 插件名唯一且 kebab-case,位于 external_plugins/aifroi-video/
  • Usage category is set independently of publisher ownership (productivity) / 用途分类已填写
  • Plugin type and affected names are declared above / 已声明插件类型与插件名称
  • version is 1.0.0 in BOTH plugin.json and marketplace.json (new plugin) / 两处版本号一致(新插件)
  • README.md (EN) and README_CN.md (中文) both provided and equivalent / 中英文 README 语义一致
  • description_i18n has both en and zh-CN / description_i18n 包含 en 与 zh-CN
  • No secrets, machine-specific paths, or private dependencies / 不含密钥、机器专属路径或私有依赖
  • Model/API/network dependencies documented / 模型、API、网络依赖已写明
  • python3 scripts/validate.py and python3 scripts/build_dist.py pass locally / 本地校验与构建均通过 — validate.py passes on the full repo; build_dist.py passes for this plugin, but the full-repo run is blocked by the Windows-only excalidraw build issue above / validate.py 全仓通过;build_dist.py 对本插件通过,全仓运行被上面的 excalidraw Windows 构建问题阻塞
  • Exercised in ZCode / 已在 ZCode 中实测 — pending, see Testing / 待补,见上

🤖 Generated with Claude Code

Adds the community plugin aifroi-video under external_plugins/: six skills for
planning and generating 9:16 Douyin e-commerce product videos, plus the Aifroi
remote MCP server (https://aifroi.com/mcp) authorized through ZCode's built-in
OAuth flow (no Authorization header, no local processes, no Hooks).

Registers the plugin in marketplace.json (category productivity, version
1.0.0) and adds its icon under assets/aifroi-video with a provenance record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant