Skip to main content
Glama

WBB MCP

让 MCP 客户端调用本机 Photoshop 和 Illustrator,制作可继续修改的 PSD、AI/PDF、独立素材和分层搭建视频。

License: MIT

公开版 0.12.6,基于私人正式版0.12.4整理。使用标准stdio MCP,提供32个工具、4份工作流资源和5个提示词。支持WorkBuddy、Codex及其他兼容本地stdio的客户端。生产行为、公开版差异和依赖许可见NOTICE。

能做什么

工作流

输入与结果

Photoshop分层海报

已准备好的PNG/JPEG、位置与文字清单 → 原生PSD、预览、独立对象PNG

艺术字

调用者提供的完整透明字形与参考素材 → 每字分组、位图材质、部分原生效果

Illustrator矢量

明确的语义对象、贝塞尔路径、渐变和文字 → 原生AI及无标注PDF,可选SVG

局部返修

对象ID、受控改动 → 保留父版本的新任务,支持限定条件的曲线并集

验收与交付

保存重开、结构/PNG重合成检查、实际客户端看图记录 → 带哈希清单的交付包

分层视频

同一批已导出素材 → 无声搭建动画,不是Adobe历史操作录屏

客户端负责看参考、设计决策、生成/准备素材和视觉复核。 本服务不内置生图模型,不自动把任意图片拆成可编辑对象,不恢复原作者源文件。图层内的位图材质仍是位图。

Related MCP server: MCP Bridge for Adobe Premiere Pro

实际案例

照片到插画:制作前后对比

更多海报案例

其他案例:文字与矢量

查看案例的制作方式、检查结果和限制。以上是私人环境中的历史制作记录;城市矢量的渐变修复尚未合入公开版,不能将案例当作公开版完整原生验收。

环境

  • Python 3.11以上,推荐3.12;推荐用uv安装。

  • 原生制作仅支持macOS:PS流程需Photoshop,AI流程需Illustrator,视频需FFmpeg/FFprobe。

  • 无Adobe时仍可读取资源、检查输入和运行普通测试;Windows原生自动化未实现。

安装与启动

git clone https://github.com/wd18771881901-cpu/wbb-mcp.git
cd wbb-mcp
uv sync --frozen --python 3.12
sh scripts/run_mcp.sh

最后一条启动MCP并等待标准输入;终端没有聊天界面是正常现象。客户端应长期管理该子进程。首次原生制作可能触发macOS自动化控制授权。

WorkBuddy / 通用MCP配置

将以下WBB项加入现有MCP配置,替换为真实绝对路径;保留已有其他服务。WorkBuddy用户级文件通常是~/.workbuddy/mcp.json。

{
  "mcpServers": {
    "WBB": {
      "type": "stdio",
      "command": "/bin/sh",
      "args": ["/absolute/path/wbb-mcp/scripts/run_mcp.sh"],
      "env": {
        "CREATIVE_WORKSPACE": "/absolute/path/wbb-data",
        "CREATIVE_DELIVERY_ROOT": "/absolute/path/wbb-delivery"
      }
    }
  }
}

启动脚本补齐常用macOS PATH,不依赖交互式shell激活。启动过程中不下载依赖,stdout只用于MCP协议。 配好后重连WBB,要求客户端调用get_runtime_identity与capabilities,核对版本、工具数量和实际目录。

Codex可使用同一脚本:

codex mcp add WBB --env CREATIVE_WORKSPACE=/absolute/path/wbb-data -- /bin/sh /absolute/path/wbb-mcp/scripts/run_mcp.sh

下载 WorkBuddy macOS 安装包,安装、配置合并和回退见WorkBuddy接入。

第一次制作

  1. 调用capabilities检查本机软件,读取creative://catalog和对应工作流资源。

  2. 导入自己有权使用的PNG/JPEG,保留返回的asset_id。按工具schema准备清单;示例字段见快速入门。

  3. prepare_poster → render_poster → verify_poster,或prepare_vector → render_vector → verify_vector。

  4. 获取get_review_packet,客户端实际打开图片并记录record_visual_review。未看过不能填通过,技术检查也不代表用户认可。

  5. 使用package_delivery或package_vector打包。按ID返修会创建子版本,不覆盖父任务。

了解矢量重建原理,或查看工具一览、架构与边界和开发与验证。

实现范围

  • PS支持普通对象增删、固定组内排序、主体组内蒙版/剪贴和PNG重合成;80输入上限只在640×480简单夹具上有历史压力证据,不能推导任意大画布性能。

  • 曲线并集限同对象、相邻堆叠、同色同role、不透明闭合区域,不等于Illustrator完整形状生成器。

  • 0.11时期的部分光顺/重拟合功能仍属实验;不承诺任意参考还原度。

  • 多尺度背景、原生渐变映射及半调背景是本地0.12.5候选方向,尚未完成全部验收,未合入本公开版。生产AI渐变位置/角度也有待修复的已知问题,见路线图。

数据和任务状态

服务新建自己的文档和任务目录,不提供任意JSX或shell执行入口。原生调用超时后先查get_job、inspect_recovery、diagnose_illustrator_state,不要重复提交渲染或删除不确定标记。

WBB_CONTEXT_ROOT可选,指向自己的project-context.json和usage-feedback.json;未配置则返回not_configured。这不是聊天后台同步。任务库、输出和上下文应放仓库外,不提交GitHub。

开源与许可

原创代码与公开文档采用MIT。第三方依赖和输入素材保留各自许可,尤其注意PyMuPDF的AGPL/商业许可,详见NOTICE。欢迎通过Issue反馈可复现问题或提交PR。

Available Tools

32 tools
build_review_evidenceB

Create reference/output boards and selected crop overlays from this job's frozen reference. Binds evidence hashes to a new review token; not automatic similarity grading or image registration.

Inputs: config (required), job_id (required). Returns: data, status

capabilitiesA
Read-onlyIdempotent

List implemented capabilities separately from reference-only recipes; does not launch Adobe.

Inputs: no named parameters. Returns: data, status

diagnose_illustrator_stateB
Read-onlyIdempotent

Read pending Illustrator marker and owned output evidence; never retry or clear it.

Inputs: no named parameters. Returns: data, status

get_jobB
Read-onlyIdempotent

Read saved job status, exact copy, revision ancestry and output paths without opening Adobe. Running/uncertain jobs require inspection, never automatic retry.

Inputs: job_id (required). Returns: data, status

get_poster_checksC
Read-onlyIdempotent

Read and recheck poster effect/move/background and bound PNG recomposition evidence; never opens Photoshop.

Inputs: job_id (required). Returns: data, status

get_production_stepsC
Read-onlyIdempotent

Describe verified background, object IDs and reopen evidence for step captions. Not a screen recording or a fabricated operation log.

Inputs: job_id (required). Returns: data, status

get_review_packetA
Read-onlyIdempotent

Return exact preview/reference paths and an artifact-bound review token. Client must actually view images and inspect spelling, silhouettes, material, layout and editability before recording observations.

Inputs: job_id (required). Returns: data, status

get_runtime_identityA
Read-onlyIdempotent

Identify this running build, instance, tool contracts and roots; never launches Adobe.

Inputs: no named parameters. Returns: data, status

get_version_treeB
Read-onlyIdempotent

List ancestors and descendant versions with hash-verified preview paths.

Inputs: job_id (required). Returns: data, status

import_assetA

Import one explicitly selected local PNG/JPEG into the workspace. Returns a content-addressed asset ID.

Inputs: source_path (required). Returns: data, status

inspect_recoveryA
Read-onlyIdempotent

Check native-complete Photoshop postprocessing recovery eligibility; no Adobe launch or marker clearing.

Inputs: job_id (required). Returns: data, status

inspect_vector_geometryB
Read-onlyIdempotent

Inspect areas, topology and bounded tangent/curvature/short-segment review candidates by object/shape/node ID. Intentional corners need client review; no automatic artistic judgment or Illustrator launch.

Inputs: spec (required), relationships. Returns: data, status

inspect_vector_referenceB
Read-onlyIdempotent

Inspect imported reference dimensions, transparency and sampled colors. Client vision must supply semantic shape design.

Inputs: asset_id (required). Returns: data, status

list_jobsA
Read-onlyIdempotent

Find existing jobs by title or exact text; returns newest matches, IDs and revision ancestry. Does not launch Adobe.

Inputs: kind, limit, query, offset, +1 more. Returns: data, status

package_deliveryB

Package the verified PSD, preview, independent layers, input assets and optional videos with SHA-256 manifest.

Inputs: job_id (required). Returns: data, status

package_vectorB

Package verified AI/PDF, optional SVG, lettering copy and reports in a new archive.

Inputs: job_id (required). Returns: data, status

plan_vector_revisionC
Read-onlyIdempotent

Preview limited object/shape-ID edits with SVG overlays and a parent-bound token; no Adobe or job writes.

Inputs: job_id (required), revision (required). Returns: data, status

prepare_letteringB

Prepare custom hand-lettered vector contours: one independent glyph per character, exact copy checked. Not font recoloring or TTF/OTF generation.

Inputs: spec (required). Returns: data, status

prepare_posterB

Validate a poster manifest and freeze input hashes in a new job. Does not open Photoshop.

Inputs: spec (required). Returns: data, status

prepare_styled_letteringC

Freeze exact text, isolated transparent glyph assets and references. Default binds the two bundled style JPEGs. Creates complete bases, bitmap smart objects and native Hue/Saturation via render_poster. No image generation or auto-segmentation.

Inputs: spec (required). Returns: data, status

prepare_vectorA

Freeze a semantic Bezier scene for native Illustrator reconstruction. Does not launch Adobe or auto-trace raster pixels.

Inputs: spec (required). Returns: data, status

record_visual_reviewA

Record client/user visual observations against a current review token. Any failed criterion blocks packaging; revisions need their own review. This records inspection and does not automatically judge images or measure similarity.

Inputs: job_id (required), review (required). Returns: data, status

recover_postprocessA

Resume failed Photoshop postprocessing from complete verified native outputs, under native/job locks. Never relaunch Adobe or clear uncertain markers.

Inputs: job_id (required). Returns: data, status

refresh_native_versionB

Prepare a traceable new Photoshop version with the same layout for current individual export contracts. Does not open Adobe; render/review the child. Old random textures cannot be reconstructed exactly.

Inputs: job_id (required). Returns: data, status

render_layer_videoB

Build a silent group or per-object entrance animation with finite scale/rotation and optional captions from verified native PNG exports; validate decoding and final frame. Not a screen recording.

Inputs: config (required), job_id (required). Returns: data, status

render_posterA

Execute a prepared job in a new Photoshop document, export PSD/PNG/layers and reopen to verify. Failure is retained; no automatic retry.

Inputs: job_id (required). Returns: data, status

render_vectorA

Make a new native Illustrator file from prepared curves, save AI/PDF, optionally SVG, reopen and verify paths/gradients/no raster.

Inputs: job_id (required). Returns: data, status

revise_letteringA

Prepare a new version by stable glyph ID: replace asset/crop, set rotation, move, scale visible width, recolor or resize canvas. Width is the final rotated visible width; x/y its top-left. Replacement clears old crop unless supplied. Preserves parent; requires render/review. Baked spray/highlights stay bitmap.

Inputs: job_id (required), revision (required). Returns: data, status

revise_posterA

Prepare a new ordinary poster version by stable asset/text IDs. Replace one asset/crop, transform, change supported effects or text, resize canvas. No existing document mutation; unrelated spec objects preserved. Render and inspect the child before delivery.

Inputs: job_id (required), revision (required). Returns: data, status

revise_vectorB

Create a child vector version with explicit palette, mirror, straight simplification or bounded closed-curve replacement/specified-node smoothing/cubic merge. Render and visually review; no automatic corner selection.

Inputs: job_id (required), revision (required), expected_plan_token. Returns: data, status

verify_posterB
Read-onlyIdempotent

Recheck output hashes and dimensions and return the native verification evidence; does not grade visual similarity.

Inputs: job_id (required). Returns: data, status

verify_vectorA
Read-onlyIdempotent

Check vector artifact hashes and native/PDF evidence. Visual resemblance still requires inspection.

Inputs: job_id (required). Returns: data, status

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 32 tools

    Disambiguation3/5

    The tool set is organized into parallel families (prepare/render/verify/revise/package) repeated across poster, vector, and lettering domains, so pairs like prepare_lettering vs prepare_styled_lettering, verify_poster vs get_poster_checks, and revise_poster vs revise_vector require careful reading to separate. The long descriptions do supply distinguishing caveats (e.g. bitmap vs native curves, 'does not open Adobe'), which keeps most selections recoverable, but boundaries are not self-evident from names alone.

    Naming Consistency4/5

    Nearly all 32 tools follow a predictable verb_noun snake_case pattern (prepare_poster, render_vector, verify_vector, package_delivery, record_visual_review), with domain modifiers used consistently as prefixes/suffixes. The lone exception is the bare noun 'capabilities', plus a slightly odd 'render_layer_video'; these are minor deviations rather than a mixed convention.

    Tool Count2/5

    At 32 tools the surface exceeds the comfortable range, and the count is inflated by three near-duplicate lifecycle families (poster, vector, lettering) that each repeat prepare/render/verify/revise/package steps. While the underlying pipeline is genuinely large (Photoshop, Illustrator, review, video, recovery), many tools could be consolidated by artifact type.

    Completeness4/5

    The lifecycle is broadly covered: job preparation, rendering, verification, revision, review evidence, packaging, plus recovery and runtime introspection paths that most servers omit. Gaps are minor — there is no job cancel/delete, no asset listing/get beyond import_asset, and no explicit cleanup of stale jobs or tokens, but core workflows have no dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables MCP clients to operate local Adobe Premiere Pro projects, covering media ingest, bins, sequence and timeline editing, transitions, effects, keyframes, captions, markers, metadata, proxies, multicam, color, audio, and exports through 283 discoverable tools, 13 context resources, and 10 guided prompts. A bundled CEP panel provides the supported production bridge, with read-only connection verification and higher-level workflows for assembling product spots and motion-graphics demos.
      5
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables any MCP client to control After Effects, Premiere Pro, Photoshop and Illustrator through 182 native tools plus 500+ bundled community tools, covering layer/comp editing, rendering, export, plugin and extension discovery, and media downloads. Cross-app workflows move comps, layers, frames and MOGRTs between applications, while raw scripting escape hatches reach nearly any menu command or plugin action.
      182
      3
      MIT