Skip to content

wdfdsyhb/dreamina-design

v0.7.0Apache-2.0

Create and edit Dreamina images and videos with approval-aware, resumable operations and verified downloads.

Dreamina Design Plugin

Plugin marketplaces

This plugin belongs to AIGC content creation.

CategoryMarketplacePurpose
Full-stack developmentFull Stack PluginsArchitecture and UI design, code understanding, quality checks, code review, workflow governance, and server operations
AIGC content creationFull AIGC PluginsImage, video, audio, music, 3D, and multimodal content creation

Dreamina Design — Create images and videos with control

Create Dreamina images and videos from your supported coding agent, with runtime CLI discovery, explicit approval for every paid call, and submissions you can resume by identifier.

Version License

English | 简体中文 · Install · Quick start · MCP tools · Troubleshooting

Positioning

dreamina-design exposes the official Dreamina CLI to supported coding-agent hosts through a local stdio MCP server with 22 typed tools. Every paid call passes a server-side confirmation, every submission gets a stable submit_id, and every task is queried before it is ever resubmitted.

The plugin is a strict wrapper: the CLI owns authentication and the remote API, model parameters come from the live CLI schema, and no tool accepts arbitrary shell input.

Who it is for

  • Designers and marketers who want image and video generation inside their coding agent without losing control of spend.
  • Engineers who need a typed, auditable MCP surface over a vendor CLI.
  • Reviewers who need an approval record and a resumable submission identity for every paid action.

What problem it solves

ProblemWhat this plugin providesVerifiable entry point
CLI options driftCapability snapshot and CLI status tools read the live CLIdreamina_capability_snapshot, dreamina_cli_status
Paid calls happen by accidentA native confirmation dialog whose default action is Cancelscripts/native_approval.py
Ambiguous results invite duplicatesQuery by submit_id; never mint a replacementscripts/operation_ledger.py
Untrusted CLI binariesTrust enrollment with an absolute path, owner check, and SHA-256scripts/trusted_cli.py

At a glance

Creative intent
      │
      ▼
┌──────────────────────────────────────────────────────────┐
│ dreamina-design                                    │
│  ① discover   live CLI capability snapshot and status    │
│  ② contract   validated generation request               │
│  ③ approve    native confirmation for paid calls         │
│  ④ submit     once, with a stable submit_id              │
│  ⑤ query      by submit_id and optionally download       │
│  ⑥ validate   artifact verification on arrival           │
└──────────────────────────────────────────────────────────┘
      │
      ▼
Downloaded image or video artifact + operation receipt
PropertyValue
Plugin IDdreamina-design
HostCodex CLI or ChatGPT desktop app
Current version0.7.0
Plugin manifest.codex-plugin/plugin.json
MCP configuration.mcp.json — local stdio server
Primary languagePython 3.13
LicenseApache-2.0

Capabilities and boundaries

Supported

CapabilityInputOutputLimitStatus
Capability discoveryA live CLIVerified capability snapshot and CLI statusRead-onlyStable
CLI managementInstall or upgrade requestVerified installation from the fixed HTTPS installerRequires approvalStable
AuthenticationOAuth requestLogin, check, relogin, or logoutRequires approvalStable
Image generationAn approved requestOne submitted image taskConsumes creditsStable
Video generationAn approved requestOne submitted video taskConsumes credits; some modes require web-side prerequisitesStable
Visual quality loopLocked visual target plus one approved generation requestContent-bound round receipt and independent Judge resultThe first round never auto-retries; default retry limit is one and requires an exact allowanceLocal contract verified
Reference-video projectSource video, redesign and a closed batch quoteDurable analysis, generation, evaluation, composition and export receiptsPaid execution remains approval-boundProduction MCP chain registered
Task handlingA submit_idStatus and optional verified downloadQuery-only; never resubmitsStable
Session managementSession requestCreate, list, search, rename, deleteRequires approval for writesStable
DiagnosticsA log requestBounded, redacted CLI log excerptRead-onlyStable
Reference-video projectProject workflow requestVersioned project, quote, execution, composition, exportThe new project tools are recorded NOT_RUN at runtimeExperimental

Not responsible for

  • Owning authentication. The dreamina CLI owns it; this repository wraps it through an argv-only adapter.
  • Deciding to spend. Only an explicit approval, confirmed in a native dialog, releases a paid call.
  • Bypassing web-only prerequisites. When a video mode needs something done on the web, the plugin reports it.
  • Retrying submissions. An uncertain result is queried by submit_id, never resubmitted.
  • Arbitrary shell or argv execution. No tool exposes a free-form command.

Maturity

StatusMeaning
StableAutomated tests plus recorded runtime evidence
ExperimentalContract is still evolving; the runtime gate is NOT_RUN
Blocked / NOT_RUNNot verified; never present it as available

Architecture and core flow

flowchart LR
    A[Codex] -->|stdio JSON-RPC| B[MCP server]
    B --> C[Approval guard]
    C -->|read-only| D[Dreamina adapter]
    C -->|paid| E[Native confirmation dialog]
    E -->|approved| D
    D --> F[dreamina CLI]
    F --> G[Remote API]
    B --> H[(Operation ledger)]
    B --> I[(Approval receipts)]
    D --> J[Trusted CLI enrollment]

Component responsibilities

ComponentOwnsDoes not own
scripts/dreamina_mcp_server.pyTool dispatch, error envelopes, stdio JSON-RPCVendor behaviour
scripts/dreamina_adapter.pyargv-only CLI invocation and typed failuresApproval decisions
scripts/approval_guard.pySingle-use approval receipts and replay rejectionCost estimation
scripts/operation_ledger.pyReceipts keyed by submit_idAuthentication
scripts/trusted_cli.pyTrust enrollment and protected storage of the CLI identityCLI installation
scripts/native_approval.pyThe fail-closed confirmation dialogBusiness rules
scripts/image_service.py, scripts/video_service.py, scripts/task_service.pyRequest construction, submission, and queryCatalog values
skills/ (21)Routing and per-capability instructions for supported hostsRuntime enforcement

Legacy CLI sunset — plan your Canvas migration

The dreamina binary stops being maintained after 2026-11. As of 0.7.0 this plugin runs a dual rail: the paid submit tools default to the Canvas runtime (dreamina-canvas CLI, quote-bound approval), and runtime: "legacy" keeps the frozen dreamina path for as long as it exists. scripts/router_skill.py still maps every frozen intent to its Canvas successor via Router.canvas_successor(); with the adapter ported, the successor table below is now executable through this plugin's own Canvas rail:

IntentFrozen route (still executed)Canvas successor
text-to-imagedreamina-cli-text2imagedreamina-canvas-cli-text2image
image-to-imagedreamina-cli-image2imagedreamina-canvas-cli-image2image
text-to-videodreamina-cli-text2videodreamina-canvas-cli-text2video
image-to-video / frames / multi-frame / multimodaldreamina-cli-*dreamina-canvas-cli-ref2video (Canvas has no i2v)
speech—dreamina-canvas-cli-text2voice
music—dreamina-canvas-cli-text2audio

Canvas runtime (default)

dreamina_submit_image / dreamina_submit_video accept:

  • runtime — canvas (default) or legacy.
  • project_id — reuse a canvas; omit it and pass canvas_name to create one (canvas creation is a remote write and asks for its own approval).
  • credit_ceiling — optional; defaults to the ceiling quoted for the saved draft.

The Canvas rail quotes the saved draft first, binds the approval fingerprint to that live amount, then runs node confirm → node run → operation wait with a stable submitId. Enrollment for the Canvas binary is separate: ~/.config/dreamina-design/trusted-canvas-cli.json (same 0600 contract as the legacy trust store). See docs/canvas-runtime.md.

Compatibility

Plugin versionHostCLIPythonStatus
0.7.0Any MCP client with stdio supportdreamina-canvas CLI enrolled and trusted3.13Dual-rail port: submit tools default to the Canvas runtime (quote-bound approval, projectId/canvas_name/credit_ceiling), runtime: legacy keeps the frozen path; router successor table is now executable
0.7.0任意支持 stdio 的 MCP 客户端已注册并信任的 dreamina-canvas CLI3.13双轨移植:提交工具默认 Canvas 运行时(报价绑定审批,新增 projectId/canvas_name/credit_ceiling),runtime: legacy 保留冻结路径;路由继任表已可执行
0.6.2Any MCP client with stdio supportdreamina CLI installed from the official installer and trusted3.13Declares the legacy-CLI sunset boundary: router_skill.py now maps every frozen route to its dreamina-canvas-cli* successor (name + install hint); frozen execution path unchanged until the adapter is ported
0.6.1Any MCP client with stdio supportdreamina CLI installed from the official installer and trusted3.13Upstream re-vendor at dreamina-skills 4e776ac (v1.7.0): 17 vendored Skills refreshed, frozen classic CLI and Prompt/OpenCLI behaviour unchanged; declared dreamina-video-shots / dreamina-video-sync as plugin-local skills
0.6.0Any MCP client with stdio supportdreamina CLI installed from the official installer and enrolled3.1322 tools registered; local production dispatch verified
0.6.0Codex / Claude Code / ZCode / Kimi through JudgePortsame3.13Visual contracts and allowance gates verified; real paid canary remains separately approved or NOT_RUN

The paid canary gate is recorded separately; it is either separately approved or marked NOT_RUN. Runtime gate lines are published and checked by:

python3 scripts/validate_distribution_v7.py --plan-gate
python3 scripts/validate_distribution_v7.py --require-runtime-gates

Installation

Prerequisites

  • Python 3.13 available to the MCP server.
  • The dreamina CLI, installed from https://jimeng.jianying.com/cli and enrolled through the native trust dialog.
  • Optional, for the reference-video project tools only: ffmpeg, ffprobe, a Whisper-compatible ASR runtime, and macOS say.

From the plugin marketplace

codex plugin marketplace add full-aigc-plugins/dreamina-design-plugin --ref v0.7.0
codex plugin add dreamina-design@partme-ai-dreamina-design

Restart Codex or the ChatGPT desktop app, then open a new task so the MCP server starts and the Skills load.

Confirm it loaded

codex plugin list

Expected entry:

dreamina-design@partme-ai-dreamina-design  installed, enabled

Then confirm the MCP server is registered and the CLI is trusted:

codex mcp list

Ask Codex to read the CLI status and account readiness. The read-only tools run without a prompt; the paid tools raise a native confirmation.

China mirror (AtomGit)

If GitHub is slow or unreachable, install from the AtomGit mirror instead. The commands are identical apart from the marketplace URL:

codex plugin marketplace add https://atomgit.com/partme-ai/partme-dreamina-design.git --ref main
codex plugin add dreamina-design@partme-ai-dreamina-design

To install the whole partme-ai plugin catalog from the mirror in one step:

codex plugin marketplace add https://atomgit.com/partme-ai/plugins.git
codex plugin add dreamina-design@partme-ai-dreamina-design

Notes:

  • The AtomGit source and the GitHub source share marketplace names, so adding one replaces the other. Switch back with codex plugin marketplace add https://github.com/partme-ai/plugins.git.
  • For ZCode or Kimi, clone the mirror repository and register the local directory in the respective marketplace configuration.

Quick start

1. Enrol the CLI once

The first tool call that needs the CLI asks you to confirm the binary's absolute path and digest in a native dialog whose default action is Cancel.

2. Create an image

Create a Dreamina image from this brief: a matte ceramic teapot on a linen table, soft morning light.

Expected observation: a capability snapshot, a validated request, a native confirmation with the exact parameters, then a single submission with a submit_id.

3. Query and download

Query that task and download the result.

Expected observation: the task is queried by submit_id and the artifact is verified on arrival. If the result is still pending, the plugin reports the state instead of resubmitting.

Configuration

SettingLocationNotes
MCP server.mcp.jsonstdio; startup timeout 10s, tool timeout 3600s
Tool approval mode.mcp.jsonapprove for read-only tools, prompt for paid and mutating tools
Trusted CLI record~/.config/dreamina-design/trusted-cli.jsonFile mode 0600, directory mode 0700; stores the path and digest
State root~/.local/share/dreamina-design/Holds operations/ and approvals/
CLI diagnostics~/.dreamina_cli/logsRead through the bounded, redacted diagnostic tool
Environment passed throughHOME, TMPDIR, LANG, LC_ALL, PATHDeclared in .mcp.json

MCP tools

Read-only tools, auto-approved

ToolPurpose
dreamina_capability_snapshotRead the verified CLI capability snapshot
dreamina_cli_statusInspect the CLI installation, version, and command help
dreamina_accountRead redacted account and credit readiness
dreamina_query_taskQuery a submit_id and optionally download
dreamina_list_tasksList tasks with bounded filters
dreamina_diagnoseRead bounded, redacted CLI logs
dreamina_quote_video_batchEnumerate exact requests and return an immutable quote

Paid or mutating tools, requiring a native confirmation

ToolPurpose
dreamina_cli_install_or_upgradeInstall or upgrade from the fixed HTTPS installer
dreamina_authOAuth login, check, relogin, or logout
dreamina_submit_imageSubmit one approved paid image request
dreamina_submit_videoSubmit one approved paid video request
dreamina_visual_loopDrive a visual-quality loop: lock a target, run one approved paid round, record the host's independent judgement, retry once at most under an exact-fingerprint allowance
dreamina_sessionCreate, list, search, rename, or delete a Session
dreamina_video_projectCreate, inspect, list, or resume a video project and enrol media tools
dreamina_analyze_reference_videoSeed a source video and derive frames, sheets, and a recut
dreamina_validate_shot_analysisPersist semantic shot annotations
dreamina_create_redesignCreate a creative-design version, original or authorized replication
dreamina_approve_video_batchActivate one non-expandable whole-batch allowance after native confirmation
dreamina_execute_video_batchRun, reconcile, or resume an activated batch
dreamina_evaluate_video_batchRecord measured and semantic gates for one shot attempt
dreamina_compose_videoBuild a closed timeline and render a temporary final MP4
dreamina_export_video_projectVerify the rendered MP4 and export it to an approved destination

Visual quality-loop contracts

  • VisualTargetReceipt locks the target bytes, dimensions, source and approved roots before generation.
  • VisualRoundReceipt binds the paid request fingerprint, returned artifact, independent Judge evidence, score, blocking gaps and next action.
  • JudgePort is host-neutral: Codex, Claude Code, ZCode, Kimi or another MCP host supplies the evaluator adapter; business code does not import a Codex sub-agent API.
  • A failed first round stops at awaiting_approval. It does not submit again. The default loop allows one retry only after an allowance matching both the exact retry fingerprint and its credit ceiling is activated.
  • ReplanPort may propose a repair without spending credits. The proposal must be persisted, approved by exact fingerprint and credit ceiling, and only explicit max_attempts=3 loops can use a third round.
  • Video batch evaluation uses verified keyframe anchors and VideoEvaluationService. CompanionDccPreviewPort connects the existing Blender/Maya argv+JSON handoff to the same Judge and receipt chain and fails closed when no companion is configured.

Error envelope

Failures return a structured envelope: error_type, message, retryable, requires_user_action, and next_action. next_action is one of request_user_action, query_same_submit_id, or correct_request.

Retry, idempotency, and recovery

  • Unknown results are queried by submit_id; submissions are never blindly retried.
  • An ambiguous submission consumes its reservation and enters manual review rather than retrying.
  • Visual first-round evaluation cannot create a second paid request; a retry requires an active exact-fingerprint allowance and cannot exceed its approved credit ceiling.
  • Approval receipts are single-use, expire after five minutes, and are bound to the session and request.
  • Task status strings are normalized, so querying, queued, pending, processing, running, and generating all report as querying.
  • Terminal operation states are succeeded, failed, and cancelled.
  • Local upload inputs are contained by scripts/reference_policy.py: at most 50 MiB per image and 512 MiB per media file, with type and containment checks.

Data and state

DataLocationLifecycleSecrets
Operation receipt~/.local/share/dreamina-design/operations/Until you delete itNo; identifiers, hashes, states, timestamps
Approval receipt~/.local/share/dreamina-design/approvals/Five minutes or single useNo; credential-like keys are stripped before persistence
Trusted CLI record~/.config/dreamina-design/trusted-cli.jsonUntil you re-enrol or delete itNo; path and digest only
Downloaded artifactsYour chosen destinationUntil you delete themNo

Security

  • Authentication stays with the dreamina CLI; this repository does not store credentials.
  • Every paid or mutating call passes a native confirmation dialog whose default action is Cancel.
  • CLI trust requires an absolute, non-symlink path, a trusted owner and mode, and a SHA-256 digest.
  • Approval persistence strips credential-like keys and rejects account-snapshot keys before writing anything.
  • Tool invocations use argv arrays only; no tool accepts a free-form command string.
  • Diagnostics are bounded and redacted; logs are never dumped wholesale.

Development and verification

python3 scripts/validate_distribution.py .
python3 -m unittest discover -s tests

Additional gates:

python3 scripts/validate_distribution_v7.py --require-runtime-gates
python3 scripts/verify_skill_snapshot.py --strict
python3 scripts/run_strict_trace.py
python3 scripts/unlock_runtime_gates.py status

Recorded evidence:

Troubleshooting

SymptomCheck firstResolution
Tools are missingcodex mcp listConfirm the plugin is enabled and open a new task
A paid call is blockedThe confirmation dialogConfirm explicitly; the default action is Cancel
The CLI is not trustedThe trust recordRe-enrol the CLI and confirm the digest
A task looks stuckThe task stateQuery by submit_id; do not submit again
A login is requiredAccount readinessUse the authentication tool, then retry the read-only check
A video mode is refusedWeb-side prerequisitesComplete the prerequisite on the web; the plugin reports rather than bypasses it
A reference-video tool does nothingThe runtime gate recordThose tools are recorded NOT_RUN until the gate passes

Project structure

partme-dreamina-design/
├── .codex-plugin/plugin.json   # identity and presentation metadata
├── .mcp.json                   # local stdio MCP server declaration
├── .agents/plugins/marketplace.json
├── scripts/                    # MCP server, adapter, services, guards, validators
├── skills/                     # 22 Skills, 17 pinned to the upstream snapshot
├── tests/                      # unit and contract tests
└── docs/                       # architecture, technical solution, verification records

Deep links

Contributing and support

Open functional issues at https://github.com/full-aigc-plugins/dreamina-design-plugin/issues. Before proposing a change, state the CLI version you verified against, whether it alters the approval envelope or the receipt format, and include the affected gate output.

License

Apache-2.0 — see LICENSE.